TextClassifierEvent.LanguageDetectionEvent.Builder


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

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


Builder class for LanguageDetectionEvent.

Summary

Public constructors

Builder(int eventType)

Creates a builder for building TextSelectionEvents.

Public methods

TextClassifierEvent.LanguageDetectionEvent build()

Builds and returns a LanguageDetectionEvent.

Inherited methods

Public constructors

Builder

Added in API level 29
public Builder (int eventType)

Creates a builder for building TextSelectionEvents.

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.LanguageDetectionEvent build ()

Builds and returns a LanguageDetectionEvent.

Returns
TextClassifierEvent.LanguageDetectionEvent This value cannot be null.