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

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

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)

Flatten this object in to a Parcel.

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

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

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

Flatten this object in to a Parcel.

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 the following:

Properties

CREATOR

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