TextClassificationManager.SetTextClassificationSessionFactory Method

Definition

Sets a TextClassificationSessionFactory to be used to create session-aware TextClassifiers.

[Android.Runtime.Register("setTextClassificationSessionFactory", "(Landroid/view/textclassifier/TextClassificationSessionFactory;)V", "", ApiSince=28)]
public void SetTextClassificationSessionFactory (Android.Views.TextClassifiers.ITextClassificationSessionFactory? factory);
[<Android.Runtime.Register("setTextClassificationSessionFactory", "(Landroid/view/textclassifier/TextClassificationSessionFactory;)V", "", ApiSince=28)>]
member this.SetTextClassificationSessionFactory : Android.Views.TextClassifiers.ITextClassificationSessionFactory -> unit

Parameters

factory
ITextClassificationSessionFactory

the textClassification session factory. If this is null, the default factory will be used.

Attributes

Remarks

Sets a TextClassificationSessionFactory to be used to create session-aware TextClassifiers.

Java documentation for android.view.textclassifier.TextClassificationManager.setTextClassificationSessionFactory(android.view.textclassifier.TextClassificationSessionFactory).

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