Android.Views.TextClassifiers Namespace

Provides APIs for classifying text in views.

Classes

Name Description
ConversationAction

Represents the action suggested by a TextClassifier on a given conversation.

ConversationAction.Builder

Builder class to construct ConversationAction.

ConversationAction.InterfaceConsts

Provides Parcelable constants inherited by ConversationAction.

ConversationActions

Represents a list of actions suggested by a TextClassifier on a given conversation.

ConversationActions.InterfaceConsts

Provides Parcelable constants inherited by ConversationActions.

ConversationActions.Message

Represents a message in the conversation.

ConversationActions.Message.Builder

Builder class to construct a Message

ConversationActions.Message.InterfaceConsts

Provides Parcelable constants inherited by ConversationActions.Message.

ConversationActions.Request

A request object for generating conversation action suggestions.

ConversationActions.Request.Builder

Builder object to construct the Request object.

ConversationActions.Request.InterfaceConsts

Provides Parcelable constants inherited by ConversationActions.Request.

ITextClassifierExtensions

Provides string overloads for text classification and selection suggestions on ITextClassifier.

SelectionEvent

A selection event.

SelectionEvent.InterfaceConsts

Provides Parcelable constants inherited by SelectionEvent.

TextClassification

Information for generating a widget to handle classified text.

TextClassification.Builder

Builder for building TextClassification objects.

TextClassification.InterfaceConsts

Provides Parcelable constants inherited by TextClassification.

TextClassification.Request

A request object for generating TextClassification.

TextClassification.Request.Builder

A builder for building TextClassification requests.

TextClassification.Request.InterfaceConsts

Provides Parcelable constants inherited by TextClassification.Request.

TextClassificationContext

A representation of the context in which text classification would be performed.

TextClassificationContext.Builder

A builder for building a TextClassification context.

TextClassificationContext.InterfaceConsts

Provides Parcelable constants inherited by TextClassificationContext.

TextClassificationManager

Interface to the text classification service.

TextClassificationSessionId

This class represents the id of a text classification session.

TextClassificationSessionId.InterfaceConsts

Provides Parcelable constants inherited by TextClassificationSessionId.

TextClassifier

Interface for providing text classification related features.

TextClassifierEntityConfig

Configuration object for specifying what entity types to identify.

TextClassifierEntityConfig.Builder

Builder class to construct the EntityConfig object.

TextClassifierEntityConfig.InterfaceConsts

Provides Parcelable constants inherited by TextClassifierEntityConfig.

TextClassifierEvent

This class represents events that are sent by components to the TextClassifier to report something of note that relates to a feature powered by the TextClassifier.

TextClassifierEvent.Builder

Builder to build a text classifier event.

TextClassifierEvent.ConversationActionsEvent

This class represents events that are related to the conversation actions feature.

TextClassifierEvent.ConversationActionsEvent.Builder

Builder class for ConversationActionsEvent.

TextClassifierEvent.InterfaceConsts

Provides Parcelable constants inherited by TextClassifierEvent.

TextClassifierEvent.LanguageDetectionEvent

This class represents events that are related to the language detection feature.

TextClassifierEvent.LanguageDetectionEvent.Builder

Builder class for LanguageDetectionEvent.

TextClassifierEvent.TextLinkifyEvent

This class represents events that are related to the smart linkify feature.

TextClassifierEvent.TextLinkifyEvent.Builder

Builder class for TextLinkifyEvent.

TextClassifierEvent.TextSelectionEvent

This class represents events that are related to the smart text selection feature.

TextClassifierEvent.TextSelectionEvent.Builder

Builder class for TextSelectionEvent.

TextLanguage

Represents the result of language detection of a piece of text.

TextLanguage.Builder

Builder used to build TextLanguage objects.

TextLanguage.InterfaceConsts

Provides Parcelable constants inherited by TextLanguage.

TextLanguage.Request

A request object for detecting the language of a piece of text.

TextLanguage.Request.Builder

A builder for building TextLanguage requests.

TextLanguage.Request.InterfaceConsts

Provides Parcelable constants inherited by TextLanguage.Request.

TextLinks

A collection of links, representing subsequences of text and the entity types (phone number, address, url, etc) they may be.

TextLinks.Builder

A builder to construct a TextLinks instance.

TextLinks.InterfaceConsts

Provides Parcelable constants inherited by TextLinks.

TextLinks.Request

A request object for generating TextLinks.

TextLinks.Request.Builder

A builder for building TextLinks requests.

TextLinks.Request.InterfaceConsts

Provides Parcelable constants inherited by TextLinks.Request.

TextLinks.TextLink

A link, identifying a substring of text and possible entity types for it.

TextLinks.TextLink.InterfaceConsts

Provides Parcelable constants inherited by TextLinks.TextLink.

TextLinks.TextLinkSpan

A ClickableSpan for a TextLink.

TextSelection

Information about where text selection should be.

TextSelection.Builder

Builder used to build TextSelection objects.

TextSelection.InterfaceConsts

Provides Parcelable constants inherited by TextSelection.

TextSelection.Request

A request object for generating TextSelection.

TextSelection.Request.Builder

A builder for building TextSelection requests.

TextSelection.Request.InterfaceConsts

Provides Parcelable constants inherited by TextSelection.Request.

Interfaces

Name Description
ITextClassificationSessionFactory

An interface for creating a session-aware TextClassifier.

ITextClassifier

Interface for providing text classification related features.

Enums

Name Description
ApplyStatusCode

Identifies the result of applying text links to spannable text.

ApplyStrategy

Specifies how to handle existing clickable spans when text links are applied.

SelectionAction

Identifies an action taken on a text selection.

SelectionEventType

Identifies a text selection change reported by a selection event.

SelectionInvocationMethod

Identifies how a text selection session began.

TextClassifierEventCategory

Identifies the text classification feature associated with an event.

TextClassifierEventType

Identifies an operation or interaction reported to a text classifier.

Remarks

Use TextClassificationManager to obtain an ITextClassifier. Request objects supply text and context for classification, selection suggestions, link generation, language detection, and conversation action suggestions. Result objects carry the corresponding entities, ranges, links, languages, or actions.

Builders configure requests and results. Selection and classifier events report interactions with features that use text classification. Unless a member documents otherwise, call classifier operations on a worker thread.