Freigeben über


TextClassificationManager.TextClassifier Property

Definition

Returns the text classifier that was set via #setTextClassifier(TextClassifier). -or- Sets the text classifier.

public Android.Views.TextClassifiers.ITextClassifier TextClassifier { [Android.Runtime.Register("getTextClassifier", "()Landroid/view/textclassifier/TextClassifier;", "", ApiSince=26)] get; [Android.Runtime.Register("setTextClassifier", "(Landroid/view/textclassifier/TextClassifier;)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getTextClassifier", "()Landroid/view/textclassifier/TextClassifier;", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setTextClassifier", "(Landroid/view/textclassifier/TextClassifier;)V", "", ApiSince=26)>]
member this.TextClassifier : Android.Views.TextClassifiers.ITextClassifier with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the text classifier that was set via #setTextClassifier(TextClassifier). If this is null, this method returns a default text classifier (i.e. either the system text classifier if one exists, or a local text classifier running in this process.)

Note that requests to the TextClassifier may be handled in an OEM-provided process rather than in the calling app's process.

Java documentation for android.view.textclassifier.TextClassificationManager.getTextClassifier().

Property setter documentation:

Sets the text classifier. Set to null to use the system default text classifier. Set to TextClassifier#NO_OP to disable text classifier features.

Java documentation for android.view.textclassifier.TextClassificationManager.setTextClassifier(android.view.textclassifier.TextClassifier).

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