Added in API level 29

Builder


class Builder : TextClassifierEvent.Builder<TextClassifierEvent.TextLinkifyEvent.Builder!>
kotlin.Any
   ↳ 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(eventType: Int)

Creates a builder for building TextLinkifyEvents.

Public methods
TextClassifierEvent.TextLinkifyEvent

Builds and returns a TextLinkifyEvent.

Inherited functions

Public constructors

Builder

Added in API level 29
Builder(eventType: Int)

Creates a builder for building TextLinkifyEvents.

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.TextLinkifyEvent

Builds and returns a TextLinkifyEvent.

Return
TextClassifierEvent.TextLinkifyEvent This value cannot be null.