TextClassifierEvent.TextLinkifyEvent.Builder


public static final class TextClassifierEvent.TextLinkifyEvent.Builder
extends Builder<TextClassifierEvent.TextLinkifyEvent.Builder>

java.lang.Object
   ↳ android.view.textclassifier.TextClassifierEvent.Builder<android.view.textclassifier.TextClassifierEvent.TextLinkifyEvent.Builder>
     ↳ android.view.textclassifier.TextClassifierEvent.TextLinkifyEvent.Builder


Builder class for TextLinkifyEvent.

Summary

Public constructors

Builder(int eventType)

Creates a builder for building TextLinkifyEvents.

Public methods

TextClassifierEvent.TextLinkifyEvent build()

Builds and returns a TextLinkifyEvent.

Inherited methods

Public constructors

Builder

Added in API level 29
public Builder (int eventType)

Creates a builder for building TextLinkifyEvents.

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

Public methods

build

Added in API level 29
public TextClassifierEvent.TextLinkifyEvent build ()

Builds and returns a TextLinkifyEvent.

Returns
TextClassifierEvent.TextLinkifyEvent This value cannot be null.