Added in API level 29

Request


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

A request object for generating conversation action suggestions.

Summary

Nested classes

Builder object to construct the Request object.

Constants
static String

To indicate the generated actions will be used within the app.

static String

To indicate the generated actions will be used for notification.

Inherited constants
Public methods
Int

String?

Returns the name of the package that sent this request.

MutableList<ConversationActions.Message!>

Returns an immutable list of messages that make up the conversation.

Bundle

Returns the extended data related to this request.

MutableList<String!>

Returns an immutable list of hints

Int

Return the maximal number of suggestions the caller wants, value -1 means no restriction and this is the default.

TextClassifier.EntityConfig

Returns the type config.

Unit
writeToParcel(parcel: Parcel, flags: Int)

Properties
static Parcelable.Creator<ConversationActions.Request!>

Constants

HINT_FOR_IN_APP

Added in API level 29
static val HINT_FOR_IN_APP: String

To indicate the generated actions will be used within the app.

Value: "in_app"

HINT_FOR_NOTIFICATION

Added in API level 29
static val HINT_FOR_NOTIFICATION: String

To indicate the generated actions will be used for notification.

Value: "notification"

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

getCallingPackageName

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

Returns the name of the package that sent this request. This returns null if no calling package name is set.

getConversation

Added in API level 29
fun getConversation(): MutableList<ConversationActions.Message!>

Returns an immutable list of messages that make up the conversation.

Return
MutableList<ConversationActions.Message!> This value cannot be null.

getExtras

Added in API level 29
fun getExtras(): Bundle

Returns the extended data related to this request.

NOTE: Do not modify this bundle.

Return
Bundle This value cannot be null.

getMaxSuggestions

Added in API level 29
fun getMaxSuggestions(): Int

Return the maximal number of suggestions the caller wants, value -1 means no restriction and this is the default.

Return
Int Value is -1 or greater

getTypeConfig

Added in API level 29
fun getTypeConfig(): TextClassifier.EntityConfig

Returns the type config.

Return
TextClassifier.EntityConfig This value cannot 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.Request!>