AccessibilityEventCompat
class AccessibilityEventCompat
kotlin.Any | |
↳ | androidx.core.view.accessibility.AccessibilityEventCompat |
Helper for accessing features in AccessibilityEvent
.
Summary
Constants | |
---|---|
static Int |
Change type for |
static Int |
Change type for |
static Int |
Change type for |
static Int |
Change type for |
static Int |
Change type for |
static Int |
Change type for |
static Int |
Change type for |
static Int |
Change type for |
static Int |
Mask for |
static Int |
Represents the event of an application making an announcement. |
static Int |
Represents the event of the assistant currently reading the users screen context. |
static Int |
Represents the event of ending gesture detection. |
static Int |
Represents the event of beginning gesture detection. |
static Int |
Represents the event of ending a touch exploration gesture. |
static Int |
Represents the event of starting a touch exploration gesture. |
static Int |
Represents the event of the user ending to touch the screen. |
static Int |
Represents the event of the user starting to touch the screen. |
static Int |
Represents the event of gaining accessibility focus. |
static Int |
Represents the event of clearing accessibility focus. |
static Int |
Represents the event of a context click on a |
static Int |
Represents the event of a hover enter over a |
static Int |
Represents the event of a hover exit over a |
static Int |
Represents the event of scrolling a view. |
static Int |
Represents the event of changing the selection in an |
static Int |
Represents the event of traversing the text of a view at a given movement granularity. |
static Int |
Represents the event change in the windows shown on the screen. |
static Int |
Represents the event of changing the content of a window. |
Public methods | |
---|---|
static Unit |
appendRecord(event: AccessibilityEvent!, record: AccessibilityRecordCompat!) Appends an |
static AccessibilityRecordCompat! |
asRecord(event: AccessibilityEvent!) Creates an |
static Int |
getAction(event: AccessibilityEvent!) Gets the performed action that triggered this event. |
static Int |
getContentChangeTypes(event: AccessibilityEvent!) Gets the bit mask of change types signaled by an |
static Int |
getMovementGranularity(event: AccessibilityEvent!) Gets the movement granularity that was traversed. |
static AccessibilityRecordCompat! |
getRecord(event: AccessibilityEvent!, index: Int) Gets the record at a given index. |
static Int |
getRecordCount(event: AccessibilityEvent!) Gets the number of records contained in the event. |
static Unit |
setAction(event: AccessibilityEvent!, action: Int) Sets the performed action that triggered this event. |
static Unit |
setContentChangeTypes(event: AccessibilityEvent!, changeTypes: Int) Sets the bit mask of node tree changes signaled by an |
static Unit |
setMovementGranularity(event: AccessibilityEvent!, granularity: Int) Sets the movement granularity that was traversed. |
Constants
CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
static val CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION: Int
Change type for TYPE_WINDOW_CONTENT_CHANGED
event: The node's content description changed.
Value: 0x00000004
CONTENT_CHANGE_TYPE_PANE_APPEARED
static val CONTENT_CHANGE_TYPE_PANE_APPEARED: Int
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.
Value: 0x00000010
CONTENT_CHANGE_TYPE_PANE_DISAPPEARED
static val CONTENT_CHANGE_TYPE_PANE_DISAPPEARED: Int
Change type for AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED
event: Can mean one of two slightly different things. The primary meaning is that the node has a pane title, and was removed from the node hierarchy. It can also be sent if the pane title is set to null
after it contained a title. No source will be returned if the node is no longer on the screen. To make the change more clear for the user, the first entry in AccessibilityRecord#getText()
can return the value that would have been returned by getSource().getPaneTitle()
.
Value: 0x00000020
CONTENT_CHANGE_TYPE_PANE_TITLE
static val CONTENT_CHANGE_TYPE_PANE_TITLE: Int
Change type for AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED
event: The node's pane title changed.
Value: 0x00000008
CONTENT_CHANGE_TYPE_STATE_DESCRIPTION
static val CONTENT_CHANGE_TYPE_STATE_DESCRIPTION: Int
Change type for AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED
event: state description of the node as returned by AccessibilityNodeInfo#getStateDescription
was changed.
Value: 0x00000040
CONTENT_CHANGE_TYPE_SUBTREE
static val CONTENT_CHANGE_TYPE_SUBTREE: Int
Change type for TYPE_WINDOW_CONTENT_CHANGED
event: A node in the subtree rooted at the source node was added or removed.
Value: 0x00000001
CONTENT_CHANGE_TYPE_TEXT
static val CONTENT_CHANGE_TYPE_TEXT: Int
Change type for TYPE_WINDOW_CONTENT_CHANGED
event: The node's text changed.
Value: 0x00000002
CONTENT_CHANGE_TYPE_UNDEFINED
static val CONTENT_CHANGE_TYPE_UNDEFINED: Int
Change type for TYPE_WINDOW_CONTENT_CHANGED
event: The type of change is not defined.
Value: 0x00000000
TYPES_ALL_MASK
static val TYPES_ALL_MASK: Int
Mask for AccessibilityEvent
all types.
Value: 0xFFFFFFFF
See Also
AccessibilityEvent#TYPE_VIEW_CLICKED
AccessibilityEvent#TYPE_VIEW_LONG_CLICKED
AccessibilityEvent#TYPE_VIEW_SELECTED
AccessibilityEvent#TYPE_VIEW_FOCUSED
AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED
AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED
AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED
AccessibilityEvent#TYPE_VIEW_HOVER_ENTER
AccessibilityEvent#TYPE_VIEW_HOVER_EXIT
AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START
AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END
AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED
AccessibilityEvent#TYPE_VIEW_SCROLLED
AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED
#TYPE_ANNOUNCEMENT
#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY