Share via


TextClassifierEvent Class

Definition

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.

[Android.Runtime.Register("android/view/textclassifier/TextClassifierEvent", ApiSince=29, DoNotGenerateAcw=true)]
public abstract class TextClassifierEvent : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/textclassifier/TextClassifierEvent", ApiSince=29, DoNotGenerateAcw=true)>]
type TextClassifierEvent = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
TextClassifierEvent
Derived
Attributes
Implements

Remarks

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. The TextClassifier may log these events or use them to improve future responses to queries.

Each category of events has its their own subclass. Events of each type have an associated set of related properties. You can find their specification in the subclasses.

Java documentation for android.view.textclassifier.TextClassifierEvent.

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.

Constructors

TextClassifierEvent(IntPtr, JniHandleOwnership)

Fields

CategoryConversationActions
Obsolete.

Conversation actions

CategoryLanguageDetection
Obsolete.

Language detection

CategoryLinkify
Obsolete.

Linkify

CategorySelection
Obsolete.

Smart selection

TypeActionsGenerated
Obsolete.

TextClassifier generated some actions

TypeActionsShown
Obsolete.

Smart actions shown to the user.

TypeAutoSelection
Obsolete.

Something else other than user or the default TextClassifier triggered a selection.

TypeCopyAction
Obsolete.

User clicked on Copy action.

TypeCutAction
Obsolete.

User clicked on Cut action.

TypeLinkClicked
Obsolete.

User clicked a link.

TypeLinksGenerated
Obsolete.

Some text links were generated.

TypeManualReply
Obsolete.

User composed a reply.

TypeOtherAction
Obsolete.

User clicked on a custom action.

TypeOvertype
Obsolete.

User typed over the selection.

TypePasteAction
Obsolete.

User clicked on Paste action.

TypeSelectAll
Obsolete.

User clicked on Select All action

TypeSelectionDestroyed
Obsolete.

Selection is destroyed.

TypeSelectionDrag
Obsolete.

User dragged+dropped the selection.

TypeSelectionModified
Obsolete.

User modified an existing selection.

TypeSelectionReset
Obsolete.

User reset the smart selection.

TypeSelectionStarted
Obsolete.

User started a new selection.

TypeShareAction
Obsolete.

User clicked on Share action.

TypeSmartAction
Obsolete.

User clicked on a Smart action.

TypeSmartSelectionMulti
Obsolete.

Smart selection triggered spanning multiple tokens (words).

TypeSmartSelectionSingle
Obsolete.

Smart selection triggered for a single token (word).

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
EventCategory

Returns the event category.

EventContext

Returns the event context.

EventIndex

Returns the index of this event in the series of event it belongs to.

EventType

Returns the event type.

Extras

Returns a bundle containing non-structured extra information about this event.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Locale

Returns the detected locale.

ModelName

Returns the model name.

PeerReference (Inherited from Object)
ResultId

Returns the id of the text classifier result related to this event.

ThresholdClass
ThresholdType

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetActionIndices()

Returns the indices of the actions relating to this event.

GetEntityTypes()

Returns an array of entity types.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetScores()

Returns the scores of the suggestions.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to