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 must never be null.

Returns
TextClassifier

This value will never be null.