Added in API level 29

ConversationActions

class ConversationActions : Parcelable
kotlin.Any
   ↳ android.view.textclassifier.ConversationActions

Represents a list of actions suggested by a TextClassifier on a given conversation.

Summary

Nested classes

Represents a message in the conversation.

A request object for generating conversation action suggestions.

Inherited constants
Public constructors

Constructs a ConversationActions object.

Public methods
Int

MutableList<ConversationAction!>

Returns an immutable list of ConversationAction objects, which are ordered from high confidence to low confidence.

String?

Returns the id, if one exists, for this object.

Unit
writeToParcel(parcel: Parcel, flags: Int)

Properties
static Parcelable.Creator<ConversationActions!>

Public constructors

ConversationActions

Added in API level 29
ConversationActions(
    conversationActions: MutableList<ConversationAction!>,
    id: String?)

Constructs a ConversationActions object.

Parameters
conversationActions MutableList<ConversationAction!>: This value cannot be null.
id String?: This value may be null.

Public methods

describeContents

Added in API level 29
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getConversationActions

Added in API level 29
fun getConversationActions(): MutableList<ConversationAction!>

Returns an immutable list of ConversationAction objects, which are ordered from high confidence to low confidence.

Return
MutableList<ConversationAction!> This value cannot be null.

getId

Added in API level 29
fun getId(): String?

Returns the id, if one exists, for this object.

Return
String? This value may be null.

writeToParcel

Added in API level 29
fun writeToParcel(
    parcel: Parcel,
    flags: Int
): Unit
Parameters
dest The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 29
static val CREATOR: Parcelable.Creator<ConversationActions!>