Added in API level 28

TextClassificationSessionFactory


public interface TextClassificationSessionFactory

android.view.textclassifier.TextClassificationSessionFactory


An interface for creating a session-aware TextClassifier.

Summary

Public methods

abstract TextClassifier createTextClassificationSession(TextClassificationContext classificationContext)

Creates and returns a session-aware TextClassifier.

Public methods

createTextClassificationSession

Added in API level 28
public abstract TextClassifier createTextClassificationSession (TextClassificationContext classificationContext)

Creates and returns a session-aware TextClassifier.

Parameters
classificationContext TextClassificationContext: the classification context This value cannot be null.

Returns
TextClassifier This value cannot be null.