次の方法で共有


ITextClassifier Interface

Definition

Interface for providing text classification related features.

[Android.Runtime.Register("android/view/textclassifier/TextClassifier", "", "Android.Views.TextClassifiers.ITextClassifierInvoker", ApiSince=26)]
public interface ITextClassifier : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/textclassifier/TextClassifier", "", "Android.Views.TextClassifiers.ITextClassifierInvoker", ApiSince=26)>]
type ITextClassifier = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

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.

<strong>NOTE: </strong>Unless otherwise stated, methods of this interface are blocking operations. Call on a worker thread.

Java documentation for android.view.textclassifier.TextClassifier.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fields

ExtraFromTextClassifier

Extra that is included on activity intents coming from a TextClassifier when it suggests actions to its caller.

HintTextIsEditable

Designates that the text in question is editable.

HintTextIsNotEditable

Designates that the text in question is not editable.

TypeAddress

Physical address.

TypeDate

Time reference that is no more specific than a date.

TypeDateTime

Time reference that includes a specific time.

TypeEmail

E-mail address (e.

TypeFlightNumber

Flight number in IATA format.

TypeOther

The classifier ran, but didn't recognize a known entity.

TypePhone

Phone number (e.

TypeUnknown

The TextClassifier failed to run.

TypeUrl

Web URL.

WidgetTypeClipboard

The text classification context is for use with the system clipboard.

WidgetTypeCustomEdittext

The widget involved in the text classification context is a custom editable text widget.

WidgetTypeCustomTextview

The widget involved in the text classification context is a custom text widget.

WidgetTypeCustomUnselectableTextview

The widget involved in the text classification context is a custom non-selectable text widget.

WidgetTypeEdittext

The widget involved in the text classification context is a standard android.widget.EditText.

WidgetTypeEditWebview

The widget involved in the text classification context is a standard editable android.webkit.WebView.

WidgetTypeNotification

The widget involved in the text classification context is a notification

WidgetTypeTextview

The widget involved in the text classification context is a standard android.widget.TextView.

WidgetTypeUnknown

The widget involved in the text classification context is of an unknown/unspecified type.

WidgetTypeUnselectableTextview

The widget involved in the text classification context is a standard non-selectable android.widget.TextView.

WidgetTypeWebview

The widget involved in the text classification context is a standard android.webkit.WebView.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsDestroyed

Returns whether or not this TextClassifier has been destroyed.

JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
MaxGenerateLinksTextLength

Returns the maximal length of text that can be processed by generateLinks.

NoOp

No-op TextClassifier.

PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

ClassifyText(ICharSequence, Int32, Int32, LocaleList)

Classifies the specified text and returns a TextClassification object that can be used to generate a widget for handling the classified text.

ClassifyText(TextClassification+Request)

Classifies the specified text and returns a TextClassification object that can be used to generate a widget for handling the classified text.

Destroy()

Destroys this TextClassifier.

DetectLanguage(TextLanguage+Request)

Detects the language of the text in the given request.

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
GenerateLinks(TextLinks+Request)

Generates and returns a TextLinks that may be applied to the text to annotate it with links information.

OnSelectionEvent(SelectionEvent)

<strong>NOTE: </strong>Use #onTextClassifierEvent(TextClassifierEvent) instead.

OnTextClassifierEvent(TextClassifierEvent)

Reports a text classifier event.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
SuggestConversationActions(ConversationActions+Request)

Suggests and returns a list of actions according to the given conversation.

SuggestSelection(ICharSequence, Int32, Int32, LocaleList)

Returns suggested text selection start and end indices, recognized entity types, and their associated confidence scores.

SuggestSelection(TextSelection+Request)

Returns suggested text selection start and end indices, recognized entity types, and their associated confidence scores.

UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

ClassifyText(ITextClassifier, String, Int32, Int32, LocaleList)
SuggestSelection(ITextClassifier, String, Int32, Int32, LocaleList)
JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to