belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
AccessibilityEventCompat
public
final
class
AccessibilityEventCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.view.accessibility.AccessibilityEventCompat |
Helper for accessing features in AccessibilityEvent
.
Summary
Constants | |
---|---|
int |
CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
Change type for |
int |
CONTENT_CHANGE_TYPE_SUBTREE
Change type for |
int |
CONTENT_CHANGE_TYPE_TEXT
Change type for |
int |
CONTENT_CHANGE_TYPE_UNDEFINED
Change type for |
int |
TYPES_ALL_MASK
Mask for |
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 was deprecated
in API level 26.1.0.
Use |
int |
TYPE_TOUCH_EXPLORATION_GESTURE_START
This constant was deprecated
in API level 26.1.0.
Use |
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 |
int |
TYPE_VIEW_HOVER_ENTER
This constant was deprecated
in API level 26.1.0.
Use |
int |
TYPE_VIEW_HOVER_EXIT
This constant was deprecated
in API level 26.1.0.
Use |
int |
TYPE_VIEW_SCROLLED
This constant was deprecated
in API level 26.1.0.
Use |
int |
TYPE_VIEW_TEXT_SELECTION_CHANGED
This constant was deprecated
in API level 26.1.0.
Use |
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 was deprecated
in API level 26.1.0.
Use |
Public methods | |
---|---|
static
void
|
appendRecord(AccessibilityEvent event, AccessibilityRecordCompat record)
This method was deprecated
in API level 26.1.0.
Use |
static
AccessibilityRecordCompat
|
asRecord(AccessibilityEvent event)
This method was deprecated
in API level 26.1.0.
Use the |
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
|
static
int
|
getMovementGranularity(AccessibilityEvent event)
Gets the movement granularity that was traversed. |
static
AccessibilityRecordCompat
|
getRecord(AccessibilityEvent event, int index)
This method was deprecated
in API level 26.1.0.
Use |
static
int
|
getRecordCount(AccessibilityEvent event)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
setAction(AccessibilityEvent event, int action)
Sets the performed action that triggered this event. |
static
void
|
setContentChangeTypes(AccessibilityEvent event, int changeTypes)
Sets the bit mask of node tree changes signaled by an
|
static
void
|
setMovementGranularity(AccessibilityEvent event, int granularity)
Sets the movement granularity that was traversed. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
int CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
Change type for TYPE_WINDOW_CONTENT_CHANGED
event:
The node's content description changed.
Constant Value: 4 (0x00000004)
CONTENT_CHANGE_TYPE_SUBTREE
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.
Constant Value: 1 (0x00000001)
CONTENT_CHANGE_TYPE_TEXT
int CONTENT_CHANGE_TYPE_TEXT
Change type for TYPE_WINDOW_CONTENT_CHANGED
event:
The node's text changed.
Constant Value: 2 (0x00000002)
CONTENT_CHANGE_TYPE_UNDEFINED
int CONTENT_CHANGE_TYPE_UNDEFINED
Change type for TYPE_WINDOW_CONTENT_CHANGED
event:
The type of change is not defined.
Constant Value: 0 (0x00000000)
TYPES_ALL_MASK
int TYPES_ALL_MASK
Mask for AccessibilityEvent
all types.
See also:
TYPE_VIEW_CLICKED
TYPE_VIEW_LONG_CLICKED
TYPE_VIEW_SELECTED
TYPE_VIEW_FOCUSED
TYPE_VIEW_TEXT_CHANGED
TYPE_WINDOW_STATE_CHANGED
TYPE_NOTIFICATION_STATE_CHANGED
TYPE_VIEW_HOVER_ENTER
TYPE_VIEW_HOVER_EXIT
TYPE_TOUCH_EXPLORATION_GESTURE_START
TYPE_TOUCH_EXPLORATION_GESTURE_END
TYPE_WINDOW_CONTENT_CHANGED
TYPE_VIEW_SCROLLED
TYPE_VIEW_TEXT_SELECTION_CHANGED
TYPE_ANNOUNCEMENT
TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY
TYPE_GESTURE_DETECTION_START
TYPE_GESTURE_DETECTION_END
TYPE_TOUCH_INTERACTION_START
TYPE_TOUCH_INTERACTION_END
TYPE_WINDOWS_CHANGED
TYPE_VIEW_CONTEXT_CLICKED
TYPE_ASSIST_READING_CONTEXT
Constant Value: -1 (0xffffffff)
TYPE_ANNOUNCEMENT
int TYPE_ANNOUNCEMENT
Represents the event of an application making an announcement.
Constant Value: 16384 (0x00004000)
TYPE_ASSIST_READING_CONTEXT
int TYPE_ASSIST_READING_CONTEXT
Represents the event of the assistant currently reading the users screen context.
Constant Value: 16777216 (0x01000000)
TYPE_GESTURE_DETECTION_END
int TYPE_GESTURE_DETECTION_END
Represents the event of ending gesture detection.
Constant Value: 524288 (0x00080000)
TYPE_GESTURE_DETECTION_START
int TYPE_GESTURE_DETECTION_START
Represents the event of beginning gesture detection.
Constant Value: 262144 (0x00040000)
TYPE_TOUCH_EXPLORATION_GESTURE_END
int TYPE_TOUCH_EXPLORATION_GESTURE_END
This constant was deprecated
in API level 26.1.0.
Use TYPE_TOUCH_EXPLORATION_GESTURE_END
directly.
Represents the event of ending a touch exploration gesture.
Constant Value: 1024 (0x00000400)
TYPE_TOUCH_EXPLORATION_GESTURE_START
int TYPE_TOUCH_EXPLORATION_GESTURE_START
This constant was deprecated
in API level 26.1.0.
Use TYPE_TOUCH_EXPLORATION_GESTURE_START
directly.
Represents the event of starting a touch exploration gesture.
Constant Value: 512 (0x00000200)
TYPE_TOUCH_INTERACTION_END
int TYPE_TOUCH_INTERACTION_END
Represents the event of the user ending to touch the screen.
Constant Value: 2097152 (0x00200000)
TYPE_TOUCH_INTERACTION_START
int TYPE_TOUCH_INTERACTION_START
Represents the event of the user starting to touch the screen.
Constant Value: 1048576 (0x00100000)
TYPE_VIEW_ACCESSIBILITY_FOCUSED
int TYPE_VIEW_ACCESSIBILITY_FOCUSED
Represents the event of gaining accessibility focus.
Constant Value: 32768 (0x00008000)
TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
int TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
Represents the event of clearing accessibility focus.
Constant Value: 65536 (0x00010000)
TYPE_VIEW_CONTEXT_CLICKED
int TYPE_VIEW_CONTEXT_CLICKED
Represents the event of a context click on a View
.
Constant Value: 8388608 (0x00800000)
TYPE_VIEW_HOVER_ENTER
int TYPE_VIEW_HOVER_ENTER
This constant was deprecated
in API level 26.1.0.
Use TYPE_VIEW_HOVER_ENTER
directly.
Represents the event of a hover enter over a View
.
Constant Value: 128 (0x00000080)