AccessibilityEventCompat

public final class AccessibilityEventCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.accessibility.AccessibilityEventCompat


Helper for accessing features in AccessibilityEvent.

Summary

Constants

int CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION

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

int CONTENT_CHANGE_TYPE_PANE_APPEARED

Change type for AccessibilityEvent.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.

int CONTENT_CHANGE_TYPE_PANE_DISAPPEARED

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

int CONTENT_CHANGE_TYPE_PANE_TITLE

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

int CONTENT_CHANGE_TYPE_STATE_DESCRIPTION

Change type for AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED event: state description of the node as returned by AccessibilityNodeInfo.getStateDescription() was changed.

int CONTENT_CHANGE_TYPE_SUBTREE

Change type for TYPE_WINDOW_CONTENT_CHANGED event: A node in the subtree rooted at the source node was added or removed.

int CONTENT_CHANGE_TYPE_TEXT

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

int CONTENT_CHANGE_TYPE_UNDEFINED

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

int TYPES_ALL_MASK

Mask for AccessibilityEvent all types.

int TYPE_ANNOUNCEMENT

Represents the event of an application making an announcement.

int TYPE_ASSIST_READING_CONTEXT

Represents the event of the assistant currently reading the users screen context.

int TYPE_GESTURE_DETECTION_END

Represents the event of ending gesture detection.

int TYPE_GESTURE_DETECTION_START

Represents the event of beginning gesture detection.

int TYPE_TOUCH_EXPLORATION_GESTURE_END

This constant is deprecated. Use AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END directly.

int TYPE_TOUCH_EXPLORATION_GESTURE_START

This constant is deprecated. Use AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START directly.

int TYPE_TOUCH_INTERACTION_END

Represents the event of the user ending to touch the screen.

int TYPE_TOUCH_INTERACTION_START

Represents the event of the user starting to touch the screen.

int TYPE_VIEW_ACCESSIBILITY_FOCUSED

Represents the event of gaining accessibility focus.

int TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED

Represents the event of clearing accessibility focus.

int TYPE_VIEW_CONTEXT_CLICKED

Represents the event of a context click on a View.

int TYPE_VIEW_HOVER_ENTER

This constant is deprecated. Use AccessibilityEvent.TYPE_VIEW_HOVER_ENTER directly.

int TYPE_VIEW_HOVER_EXIT

This constant is deprecated. Use AccessibilityEvent.TYPE_VIEW_HOVER_EXIT directly.

int TYPE_VIEW_SCROLLED

This constant is deprecated. Use AccessibilityEvent.TYPE_VIEW_SCROLLED directly.

int TYPE_VIEW_TEXT_SELECTION_CHANGED

This constant is deprecated. Use AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED directly.

int TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY

Represents the event of traversing the text of a view at a given movement granularity.

int TYPE_WINDOWS_CHANGED

Represents the event change in the windows shown on the screen.

int TYPE_WINDOW_CONTENT_CHANGED

This constant is deprecated. Use AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED directly.

Public methods

static void appendRecord(AccessibilityEvent event, AccessibilityRecordCompat record)

This method is deprecated. Use AccessibilityEvent.appendRecord(AccessibilityRecord) directly.

static AccessibilityRecordCompat asRecord(AccessibilityEvent event)

This method is deprecated. Use the AccessibilityEvent directly as AccessibilityRecord.

static int getAction(AccessibilityEvent event)

Gets the performed action that triggered this event.

static int getContentChangeTypes(AccessibilityEvent event)

Gets the bit mask of change types signaled by an TYPE_WINDOW_CONTENT_CHANGED event.

static int