TextClassificationContext.Builder(String, String) Constructor

Definition

Initializes a new builder for text classification context objects.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=28)]
public Builder(string packageName, string widgetType);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=28)>]
new Android.Views.TextClassifiers.TextClassificationContext.Builder : string * string -> Android.Views.TextClassifiers.TextClassificationContext.Builder

Parameters

packageName
String

String: the name of the calling package. This value cannot be null.

widgetType
String

String: the type of widget e.g. TextClassifier.WIDGET_TYPE_TEXTVIEW This value cannot be null. Value is one of the following: TextClassifier.WIDGET_TYPE_TEXTVIEW TextClassifier.WIDGET_TYPE_EDITTEXT TextClassifier.WIDGET_TYPE_UNSELECTABLE_TEXTVIEW TextClassifier.WIDGET_TYPE_WEBVIEW TextClassifier.WIDGET_TYPE_EDIT_WEBVIEW TextClassifier.WIDGET_TYPE_CUSTOM_TEXTVIEW TextClassifier.WIDGET_TYPE_CUSTOM_EDITTEXT TextClassifier.WIDGET_TYPE_CUSTOM_UNSELECTABLE_TEXTVIEW TextClassifier.WIDGET_TYPE_NOTIFICATION TextClassifier.WIDGET_TYPE_CLIPBOARD TextClassifier.WIDGET_TYPE_UNKNOWN

Attributes

Remarks

Initializes a new builder for text classification context objects.

Android reference for android.view.textclassifier.TextClassificationContext.Builder.Builder.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to