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  | |
| 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!> | getHints()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
static val HINT_FOR_IN_APP: String
To indicate the generated actions will be used within the app.
Value: "in_app"HINT_FOR_NOTIFICATION
static val HINT_FOR_NOTIFICATION: String
To indicate the generated actions will be used for notification.
Value: "notification"Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getCallingPackageName
fun getCallingPackageName(): String?
Returns the name of the package that sent this request. This returns null if no calling package name is set.
getConversation
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
fun getExtras(): Bundle
Returns the extended data related to this request.
NOTE: Do not modify this bundle.
| Return | |
|---|---|
| Bundle | This value cannot be null. | 
getHints
fun getHints(): MutableList<String!>
Returns an immutable list of hints
| Return | |
|---|---|
| MutableList<String!> | This value cannot be null. Value isandroid.view.textclassifier.ConversationActions.Request#HINT_FOR_NOTIFICATION, orandroid.view.textclassifier.ConversationActions.Request#HINT_FOR_IN_APP | 
getMaxSuggestions
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
fun getTypeConfig(): TextClassifier.EntityConfig
Returns the type config.
| Return | |
|---|---|
| TextClassifier.EntityConfig | This value cannot be null. | 
writeToParcel
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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
