Added in API level 26

TextClassificationManager


public final class TextClassificationManager
extends Object

java.lang.Object
   ↳ android.view.textclassifier.TextClassificationManager


Interface to the text classification service.

Summary

Public methods

TextClassifier createTextClassificationSession(TextClassificationContext classificationContext)

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

TextClassifier getTextClassifier()

Returns the text classifier that was set via setTextClassifier(TextClassifier).

void setTextClassificationSessionFactory(TextClassificationSessionFactory factory)

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

void setTextClassifier(TextClassifier textClassifier)

Sets the text classifier.

Inherited methods