TextClassifier
public
interface
TextClassifier
| android.view.textclassifier.TextClassifier |
Interface for providing text classification related features.
The TextClassifier may be used to understand the meaning of text, as well as generating predicted next actions based on the text.
NOTE: Unless otherwise stated, methods of this interface are blocking operations. Call on a worker thread.
Summary
Nested classes | |
|---|---|
class |
TextClassifier.EntityConfig
Configuration object for specifying what entity types to identify. |
Constants | |
|---|---|
String |
EXTRA_FROM_TEXT_CLASSIFIER
Extra that is included on activity intents coming from a TextClassifier when it suggests actions to its caller. |
String |
EXTRA_OTP_TRUSTED_PACKAGES
Extra specifying a list of trusted packages which can receive or view the OTP. |
String |
EXTRA_TEXT_ORIGIN_PACKAGE
Extra specifying the package name of the app from which the text to be classified originated. |
String |
HINT_TEXT_IS_EDITABLE
Designates that the text in question is editable. |
String |
HINT_TEXT_IS_NOT_EDITABLE
Designates that the text in question is not editable. |
String |
TYPE_ADDRESS
Physical address. |
String |
TYPE_DATE
Time reference that is no more specific than a date. |
String |
TYPE_DATE_TIME
Time reference that includes a specific time. |
String |
TYPE_EMAIL
E-mail address (e.g. "noreply@android.com"). |
String |
TYPE_FLIGHT_NUMBER
Flight number in IATA format. |
String |
TYPE_OTHER
The classifier ran, but didn't recognize a known entity. |
String |
TYPE_OTP
Onetime password. |
String |
TYPE_PHONE
Phone number (e.g. "555-123 456"). |
String |
TYPE_SMS_RETRIEVER_OTP
SMS retriever OTP. |
String |
TYPE_SMS_WEB_OTP
WebOTP SMS. |
String |
|