Added in API level 29

Builder


class Builder : TextClassifierEvent.Builder<TextClassifierEvent.ConversationActionsEvent.Builder!>
kotlin.Any
   ↳ android.view.textclassifier.TextClassifierEvent.Builder<android.view.textclassifier.TextClassifierEvent.ConversationActionsEvent.Builder>
   ↳ android.view.textclassifier.TextClassifierEvent.ConversationActionsEvent.Builder

Builder class for ConversationActionsEvent.

Summary

Public constructors
Builder(eventType: Int)

Creates a builder for building TextSelectionEvents.

Public methods
TextClassifierEvent.ConversationActionsEvent

Builds and returns a ConversationActionsEvent.

Inherited functions

Public constructors

Builder

Added in API level 29
Builder(eventType: Int)

Creates a builder for building TextSelectionEvents.

Parameters
eventType Int: The event type. e.g. TYPE_SMART_ACTION Value is android.view.textclassifier.TextClassifierEvent#TYPE_SELECTION_STARTED, android.view.textclassifier.TextClassifierEvent#TYPE_SELECTION_MODIFIED, android.view.textclassifier.TextClassifierEvent#TYPE_SMART_SELECTION_SINGLE, android.view.textclassifier.TextClassifierEvent#TYPE_SMART_SELECTION_MULTI, android.view.textclassifier.TextClassifierEvent#TYPE_AUTO_SELECTION, android.view.textclassifier.TextClassifierEvent#TYPE_ACTIONS_SHOWN, android.view.textclassifier.TextClassifierEvent#TYPE_LINK_CLICKED, android.view.textclassifier.TextClassifierEvent#TYPE_OVERTYPE, android.view.textclassifier.TextClassifierEvent#TYPE_COPY_ACTION, android.view.textclassifier.TextClassifierEvent#TYPE_PASTE_ACTION, android.view.textclassifier.TextClassifierEvent#TYPE_CUT_ACTION, android.view.textclassifier.TextClassifierEvent#TYPE_SHARE_ACTION, android.view.textclassifier.TextClassifierEvent#TYPE_SMART_ACTION, android.view.textclassifier.TextClassifierEvent#TYPE_SELECTION_DRAG, android.view.textclassifier.TextClassifierEvent#TYPE_SELECTION_DESTROYED, android.view.textclassifier.TextClassifierEvent#TYPE_OTHER_ACTION, android.view.textclassifier.TextClassifierEvent#TYPE_SELECT_ALL, android.view.textclassifier.TextClassifierEvent#TYPE_SELECTION_RESET, android.view.textclassifier.TextClassifierEvent#TYPE_MANUAL_REPLY, android.view.textclassifier.TextClassifierEvent#TYPE_ACTIONS_GENERATED, android.view.textclassifier.TextClassifierEvent#TYPE_LINKS_GENERATED, or android.view.textclassifier.TextClassifierEvent.TYPE_READ_CLIPBOARD

Public methods

build

Added in API level 29
fun build(): TextClassifierEvent.ConversationActionsEvent

Builds and returns a ConversationActionsEvent.

Return
TextClassifierEvent.ConversationActionsEvent This value cannot be null.