# TextClassifierEvent.ConversationActionsEvent

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent#nestedclasses)\|[Inherited Constants](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent#inhconstants)\|[Fields](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent#lfields)\|[Inherited Fields](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent#inhfields)\|[Inherited Methods](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent#inhmethods)  

# TextClassifierEvent.ConversationActionsEvent

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent "View this page in Kotlin")\|Java

`
public
static
final

class
TextClassifierEvent.ConversationActionsEvent
`  
`


``

extends `[TextClassifierEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent)`


``


implements

`[Parcelable](https://developer.android.com/reference/android/os/Parcelable)`


`

|---|---|--------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object)   |||
| ↳ | [android.view.textclassifier.TextClassifierEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent) ||
|   | ↳ | android.view.textclassifier.TextClassifierEvent.ConversationActionsEvent |

<br />

*** ** * ** ***

This class represents events that are related to the conversation actions feature.

<br />

```
     // Conversation (contextual) actions/replies generated.
     new ConversationActionsEvent.Builder(TYPE_ACTIONS_GENERATED)
         .setEventContext(classificationContext)
         .setResultId(conversationActions.getId())
         .setEntityTypes(getTypes(conversationActions))
         .setActionIndices(range(conversationActions.getActions().size()))
         .setEventIndex(0)
         .build();

     // Conversation actions/replies presented to user.
     new ConversationActionsEvent.Builder(TYPE_ACTIONS_SHOWN)
         .setEventContext(classificationContext)
         .setResultId(conversationActions.getId())
         .setEntityTypes(getTypes(conversationActions))
         .setActionIndices(range(conversationActions.getActions().size()))
         .setEventIndex(1)
         .build();

     // User clicked the "Reply" button to compose their custom reply.
     new ConversationActionsEvent.Builder(TYPE_MANUAL_REPLY)
         .setEventContext(classificationContext)
         .setResultId(conversationActions.getId())
         .setEventIndex(2)
         .build();

     // User selected a smart (contextual) action/reply.
     new ConversationActionsEvent.Builder(TYPE_SMART_ACTION)
         .setEventContext(classificationContext)
         .setResultId(conversationActions.getId())
         .setEntityTypes(conversationActions.get(1).getType())
         .setScore(conversationAction.get(1).getConfidenceScore())
         .setActionIndices(1)
         .setEventIndex(2)
         .build();
 
```

<br />

## Summary

|                                                                                                                                                                    ### Nested classes                                                                                                                                                                     ||
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [TextClassifierEvent.ConversationActionsEvent.Builder](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent.Builder) Builder class for[ConversationActionsEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent). |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.view.textclassifier.TextClassifierEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent) |-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [CATEGORY_CONVERSATION_ACTIONS](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#CATEGORY_CONVERSATION_ACTIONS) Conversation actions                                            | | `int` | [CATEGORY_LANGUAGE_DETECTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#CATEGORY_LANGUAGE_DETECTION) Language detection                                                  | | `int` | [CATEGORY_LINKIFY](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#CATEGORY_LINKIFY) Linkify                                                                                   | | `int` | [CATEGORY_SELECTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#CATEGORY_SELECTION) Smart selection                                                                       | | `int` | [TYPE_ACTIONS_GENERATED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_ACTIONS_GENERATED) TextClassifier generated some actions                                         | | `int` | [TYPE_ACTIONS_SHOWN](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_ACTIONS_SHOWN) Smart actions shown to the user.                                                      | | `int` | [TYPE_AUTO_SELECTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_AUTO_SELECTION) Something else other than user or the default TextClassifier triggered a selection. | | `int` | [TYPE_COPY_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_COPY_ACTION) User clicked on Copy action.                                                              | | `int` | [TYPE_CUT_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_CUT_ACTION) User clicked on Cut action.                                                                 | | `int` | [TYPE_LINKS_GENERATED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_LINKS_GENERATED) Some text links were generated.                                                   | | `int` | [TYPE_LINK_CLICKED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_LINK_CLICKED) User clicked a link.                                                                    | | `int` | [TYPE_MANUAL_REPLY](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_MANUAL_REPLY) User composed a reply.                                                                  | | `int` | [TYPE_OTHER_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_OTHER_ACTION) User clicked on a custom action.                                                        | | `int` | [TYPE_OVERTYPE](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_OVERTYPE) User typed over the selection.                                                                  | | `int` | [TYPE_PASTE_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_PASTE_ACTION) User clicked on Paste action.                                                           | | `int` | [TYPE_SELECTION_DESTROYED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_DESTROYED) Selection is destroyed.                                                   | | `int` | [TYPE_SELECTION_DRAG](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_DRAG) User dragged+dropped the selection.                                                 | | `int` | [TYPE_SELECTION_MODIFIED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_MODIFIED) User modified an existing selection.                                        | | `int` | [TYPE_SELECTION_RESET](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_RESET) User reset the smart selection.                                                   | | `int` | [TYPE_SELECTION_STARTED](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECTION_STARTED) User started a new selection.                                                 | | `int` | [TYPE_SELECT_ALL](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SELECT_ALL) User clicked on Select All action                                                           | | `int` | [TYPE_SHARE_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SHARE_ACTION) User clicked on Share action.                                                           | | `int` | [TYPE_SMART_ACTION](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SMART_ACTION) User clicked on a Smart action.                                                         | | `int` | [TYPE_SMART_SELECTION_MULTI](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SMART_SELECTION_MULTI) Smart selection triggered spanning multiple tokens (words).           | | `int` | [TYPE_SMART_SELECTION_SINGLE](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#TYPE_SMART_SELECTION_SINGLE) Smart selection triggered for a single token (word).                | |
| From interface[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable) |-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR) Descriptor bit used with[describeContents()](https://developer.android.com/reference/android/os/Parcelable#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor.                                                                                                                                            | | `int` | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE) Flag for use with[writeToParcel(Parcel, int)](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)): the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

|                                                                                                                                                                                                        ### Fields                                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator)`<`[TextClassifierEvent.ConversationActionsEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent)`>` | [CREATOR](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent.ConversationActionsEvent#CREATOR) <br /> |

|                                                                                                                                                                                                                                                                                                                                                                                                                     ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                     |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.view.textclassifier.TextClassifierEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------| | ` public static final `[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator)`<`[TextClassifierEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent)`>` | [CREATOR](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#CREATOR) <br /> | |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.view.textclassifier.TextClassifierEvent](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent)` ` |-------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` int`                                                                                                                        | ` `[describeContents](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#describeContents())`() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.                                    | | ` int[]`                                                                                                                      | ` `[getActionIndices](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getActionIndices())`() ` Returns the indices of the actions relating to this event.                                                                                 | | ` `[String[]](https://developer.android.com/reference/java/lang/String)                                                       | ` `[getEntityTypes](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getEntityTypes())`() ` Returns an array of entity types.                                                                                                              | | ` int`                                                                                                                        | ` `[getEventCategory](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getEventCategory())`() ` Returns the event category.                                                                                                                | | ` `[TextClassificationContext](https://developer.android.com/reference/android/view/textclassifier/TextClassificationContext) | ` `[getEventContext](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getEventContext())`() ` Returns the event context.                                                                                                                   | | ` int`                                                                                                                        | ` `[getEventIndex](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getEventIndex())`() ` Returns the index of this event in the series of event it belongs to.                                                                            | | ` int`                                                                                                                        | ` `[getEventType](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getEventType())`() ` Returns the event type.                                                                                                                            | | ` `[Bundle](https://developer.android.com/reference/android/os/Bundle)                                                        | ` `[getExtras](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getExtras())`() ` Returns a bundle containing non-structured extra information about this event.                                                                           | | ` `[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)                                                | ` `[getLocale](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getLocale())`() ` Returns the detected locale.                                                                                                                             | | ` `[String](https://developer.android.com/reference/java/lang/String)                                                         | ` `[getModelName](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getModelName())`() ` Returns the model name.                                                                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String)                                                         | ` `[getResultId](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getResultId())`() ` Returns the id of the text classifier result related to this event.                                                                                  | | ` float[]`                                                                                                                    | ` `[getScores](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#getScores())`() ` Returns the scores of the suggestions.                                                                                                                   | | ` `[String](https://developer.android.com/reference/java/lang/String)                                                         | ` `[toString](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#toString())`() ` Returns a string representation of the object.                                                                                                             | | ` void`                                                                                                                       | ` `[writeToParcel](https://developer.android.com/reference/android/view/textclassifier/TextClassifierEvent#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` dest, int flags) ` Flatten this object in to a Parcel. | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable)` ` |------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract int`  | ` `[describeContents](https://developer.android.com/reference/android/os/Parcelable#describeContents())`() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.                                    | | ` abstract void` | ` `[writeToParcel](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` dest, int flags) ` Flatten this object in to a Parcel. | ||

## Fields

### CREATOR

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Creator<TextClassifierEvent.ConversationActionsEvent> CREATOR
```

<br />

<br />