java.lang.Object | |
↳ | android.support.v4.view.accessibility.AccessibilityEventCompat |
Helper for accessing features in
AccessibilityEvent
introduced after API level 4 in a backwards compatible fashion.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TYPES_ALL_MASK |
Mask for
AccessibilityEvent
all types.
|
|||||||||
int | TYPE_ANNOUNCEMENT | Represents the event of an application making an announcement. | |||||||||
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 | Represents the event of ending a touch exploration gesture. | |||||||||
int | TYPE_TOUCH_EXPLORATION_GESTURE_START | Represents the event of starting a touch exploration gesture. | |||||||||
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_HOVER_ENTER |
Represents the event of a hover enter over a
View
.
|
|||||||||
int | TYPE_VIEW_HOVER_EXIT |
Represents the event of a hover exit over a
View
.
|
|||||||||
int | TYPE_VIEW_SCROLLED | Represents the event of scrolling a view. | |||||||||
int | TYPE_VIEW_TEXT_SELECTION_CHANGED |
Represents the event of changing the selection in an
EditText
.
|
|||||||||
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_WINDOW_CONTENT_CHANGED | Represents the event of changing the content of a window. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Appends an
AccessibilityRecord
to the end of
event records.
|
||||||||||
|
Creates an
AccessibilityRecordCompat
from an
AccessibilityEvent
that can be used to manipulate the event properties defined in
AccessibilityRecord
.
|
||||||||||
|
Gets the record at a given index.
|
||||||||||
|
Gets the number of records contained in the event.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Mask for
AccessibilityEvent
all types.
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
Represents the event of an application making an announcement.
Represents the event of ending gesture detection.
Represents the event of beginning gesture detection.
Represents the event of ending a touch exploration gesture.
Represents the event of starting a touch exploration gesture.
Represents the event of the user ending to touch the screen.
Represents the event of the user starting to touch the screen.
Represents the event of gaining accessibility focus.
Represents the event of clearing accessibility focus.
Represents the event of a hover enter over a
View
.
Represents the event of a hover exit over a
View
.
Represents the event of scrolling a view.
Represents the event of changing the selection in an
EditText
.
Represents the event of traversing the text of a view at a given movement granularity.
Represents the event of changing the content of a window.
Appends an
AccessibilityRecord
to the end of
event records.
record | The record to append. |
---|
IllegalStateException | If called from an AccessibilityService. |
---|
Creates an
AccessibilityRecordCompat
from an
AccessibilityEvent
that can be used to manipulate the event properties defined in
AccessibilityRecord
.
Note:
Do not call
recycle()
on the
returned
AccessibilityRecordCompat
. Call
recycle()
in case you want to recycle the event.
event | The from which to create a record. |
---|
Gets the record at a given index.
index | The index. |
---|
Gets the number of records contained in the event.