TextClassificationManager.CreateTextClassificationSession Method

Definition

Call this method to start a text classification session with the given context.

[Android.Runtime.Register("createTextClassificationSession", "(Landroid/view/textclassifier/TextClassificationContext;)Landroid/view/textclassifier/TextClassifier;", "", ApiSince=28)]
public Android.Views.TextClassifiers.ITextClassifier CreateTextClassificationSession (Android.Views.TextClassifiers.TextClassificationContext classificationContext);
[<Android.Runtime.Register("createTextClassificationSession", "(Landroid/view/textclassifier/TextClassificationContext;)Landroid/view/textclassifier/TextClassifier;", "", ApiSince=28)>]
member this.CreateTextClassificationSession : Android.Views.TextClassifiers.TextClassificationContext -> Android.Views.TextClassifiers.ITextClassifier

Parameters

classificationContext
TextClassificationContext

The context in which classification would occur

Returns

An instance to perform classification in the given context

Attributes

Remarks

Call this method to start a text classification session with the given context. A session is created with a context helping the classifier better understand what the user needs and consists of queries and feedback events. The queries are directly related to providing useful functionality to the user and the events are a feedback loop back to the classifier helping it learn and better serve future queries.

All interactions with the returned classifier are considered part of a single session and are logically grouped. For example, when a text widget is focused all user interactions around text editing (selection, editing, etc) can be grouped together to allow the classifier get better.

Java documentation for android.view.textclassifier.TextClassificationManager.createTextClassificationSession(android.view.textclassifier.TextClassificationContext).

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