Added in API level 28
TextClassificationSessionFactory
interface TextClassificationSessionFactory
android.view.textclassifier.TextClassificationSessionFactory |
An interface for creating a session-aware TextClassifier.
Summary
Public methods | |
---|---|
abstract TextClassifier |
createTextClassificationSession(classificationContext: TextClassificationContext) Creates and returns a session-aware TextClassifier. |
Public methods
createTextClassificationSession
Added in API level 28
abstract fun createTextClassificationSession(classificationContext: TextClassificationContext): TextClassifier
Creates and returns a session-aware TextClassifier.
Parameters | |
---|---|
classificationContext |
TextClassificationContext: the classification context This value cannot be null . |
Return | |
---|---|
TextClassifier |
This value cannot be null . |