AccessibilityEvent Class

Definition

This class represents accessibility events that are sent by the system when something notable happens in the user interface.

[Android.Runtime.Register("android/view/accessibility/AccessibilityEvent", DoNotGenerateAcw=true)]
public sealed class AccessibilityEvent : Android.Views.Accessibility.AccessibilityRecord, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/accessibility/AccessibilityEvent", DoNotGenerateAcw=true)>]
type AccessibilityEvent = class
    inherit AccessibilityRecord
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
AccessibilityEvent
Attributes
Implements

Remarks

Java documentation for android.view.accessibility.AccessibilityEvent.

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

AccessibilityEvent()

Creates a new AccessibilityEvent.

AccessibilityEvent(AccessibilityEvent)

Copy constructor.

AccessibilityEvent(Int32)

Creates a new AccessibilityEvent with the given <code>eventType</code>.

Fields

ContentChangeTypeContentDescription
Obsolete.

Change type for #TYPE_WINDOW_CONTENT_CHANGED event: The node's content description changed.

ContentChangeTypePaneAppeared
Obsolete.

Change type for #TYPE_WINDOW_STATE_CHANGED event: The node has a pane title, and either just appeared or just was assigned a title when it had none before.

ContentChangeTypePaneDisappeared
Obsolete.

Change type for #TYPE_WINDOW_STATE_CHANGED event: Can mean one of two slightly different things.

ContentChangeTypePaneTitle
Obsolete.

Change type for #TYPE_WINDOW_STATE_CHANGED event: The node's pane title changed.

ContentChangeTypeStateDescription
Obsolete.

Change type for #TYPE_WINDOW_CONTENT_CHANGED event: state description of the node as returned by AccessibilityNodeInfo#getStateDescription changed.

ContentChangeTypeSubtree
Obsolete.

Change type for #TYPE_WINDOW_CONTENT_CHANGED event: One or more content changes occurred in the the subtree rooted at the source node, or the subtree's structure changed when a node was added or removed.

ContentChangeTypeText
Obsolete.

Change type for #TYPE_WINDOW_CONTENT_CHANGED event: The node's text changed.

ContentChangeTypeUndefined
Obsolete.

Change type for #TYPE_WINDOW_CONTENT_CHANGED event: The type of change is not defined.

InvalidPosition

Invalid selection/focus position.

MaxTextLength
Obsolete.

Maximum length of the text fields.

WindowsChangeAccessibilityFocused
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window's AccessibilityWindowInfo#isAccessibilityFocused() changed.

WindowsChangeActive
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window's AccessibilityWindowInfo#isActive() changed.

WindowsChangeAdded
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window was added.

WindowsChangeBounds
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window's bounds changed.

WindowsChangeChildren
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window's children changed.

WindowsChangeFocused
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window's AccessibilityWindowInfo#isFocused() changed.

WindowsChangeLayer
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window's layer changed.

WindowsChangeParent
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window's parent changed.

WindowsChangePip
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window either entered or exited picture-in-picture mode.

WindowsChangeRemoved
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: A window was removed.

WindowsChangeTitle
Obsolete.

Change type for #TYPE_WINDOWS_CHANGED event: The window's title changed.

Properties

Action
Obsolete.

Gets the performed action that triggered this event.

AddedCount
BeforeText
BeforeTextFormatted
Checked
Class

Returns the runtime class of this Object.

(Inherited from Object)
ClassName
ClassNameFormatted
ContentChangeTypes

Gets the bit mask of change types signaled by a #TYPE_WINDOW_CONTENT_CHANGED event or #TYPE_WINDOW_STATE_CHANGED. -or- Sets the bit mask of node tree changes signaled by an #TYPE_WINDOW_CONTENT_CHANGED event.

ContentDescription
ContentDescriptionFormatted
Creator
CurrentItemIndex
Enabled
EventTime

Gets the time in which this event was sent. -or- Sets the time in which this event was sent.

EventType

Gets the event type. -or- Sets the event type.

FromIndex
FullScreen
Handle

The handle to the underlying Android instance.

(Inherited from Object)
ItemCount
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
MaxScrollX

Gets the max scroll offset of the source left edge in pixels. -or- Sets the max scroll offset of the source left edge in pixels.

(Inherited from AccessibilityRecord)
MaxScrollY

Gets the max scroll offset of the source top edge in pixels. -or- Sets the max scroll offset of the source top edge in pixels.

(Inherited from AccessibilityRecord)
MovementGranularity

Gets the movement granularity that was traversed. -or- Sets the movement granularity that was traversed.

PackageName
PackageNameFormatted

Gets the package name of the source. -or- Sets the package name of the source.

ParcelableData
Password
PeerReference (Inherited from Object)
RecordCount

Gets the number of records contained in the event.

RemovedCount
Scrollable

Gets if the source is scrollable. -or- Sets if the source is scrollable.

(Inherited from AccessibilityRecord)
ScrollDeltaX

Gets the difference in pixels between the horizontal position before the scroll and the current horizontal position -or- Sets the difference in pixels between the horizontal position before the scroll and the current horizontal position

(Inherited from AccessibilityRecord)
ScrollDeltaY

Gets the difference in pixels between the vertical position before the scroll and the current vertical position -or- Sets the difference in pixels between the vertical position before the scroll and the current vertical position

(Inherited from AccessibilityRecord)
ScrollX

Gets the scroll offset of the source left edge in pixels. -or- Sets the scroll offset of the source left edge in pixels.

(Inherited from AccessibilityRecord)
ScrollY

Gets the scroll offset of the source top edge in pixels. -or- Sets the scroll offset of the source top edge in pixels.

(Inherited from AccessibilityRecord)
Source

Gets the AccessibilityNodeInfo of the event source.

(Inherited from AccessibilityRecord)
Text
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from AccessibilityRecord)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from AccessibilityRecord)
ToIndex

Gets the index of text selection end or the index of the last visible item when scrolling. -or- Sets the index of text selection end or the index of the last visible item when scrolling.

(Inherited from AccessibilityRecord)
WindowChanges

Get the bit mask of change types signaled by a #TYPE_WINDOWS_CHANGED event.

WindowId

Gets the id of the window from which the event comes from.

(Inherited from AccessibilityRecord)

Methods

AppendRecord(AccessibilityRecord)

Appends an AccessibilityRecord to the end of event records.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()

[TODO: @inheritDoc]

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

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

(Inherited from Object)
EventTypeToString(EventTypes)

Returns the string representation of an event type.

GetAction()

Gets the performed action that triggered this event.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetRecord(Int32)

Gets the record at a given index.

InitFromParcel(Parcel)

Creates a new instance from a Parcel.

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)
Obtain()

Returns a cached instance if such is available or a new one is instantiated.

Obtain(AccessibilityEvent)

Returns a cached instance if such is available or a new one is created.

Obtain(EventTypes)

Returns a cached instance if such is available or a new one is instantiated with its type property set.

Recycle()

Recycles an instance back to be reused.

SetAction(GlobalAction)

Sets the performed action that triggered this event.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetSource(View)

Sets the event source.

(Inherited from AccessibilityRecord)
SetSource(View, Int32)

Sets the source to be a virtual descendant of the given <code>root</code>.

(Inherited from AccessibilityRecord)
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 another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

[TODO: @inheritDoc]

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