Example usage for Java android.view.accessibility AccessibilityEvent fields, constructors, methods, implement or subclass
The text is from its open source code.
int | TYPE_VIEW_CLICKED Represents the event of clicking on a android.view.View like android.widget.Button , android.widget.CompoundButton , etc. |
int | TYPE_VIEW_LONG_CLICKED Represents the event of long clicking on a android.view.View like android.widget.Button , android.widget.CompoundButton , etc. |
int | TYPE_VIEW_SELECTED Represents the event of selecting an item usually in the context of an android.widget.AdapterView . |
int | TYPE_VIEW_FOCUSED Represents the event of setting input focus of a android.view.View . |
int | TYPE_VIEW_TEXT_CHANGED Represents the event of changing the text of an android.widget.EditText . |
int | TYPE_WINDOW_STATE_CHANGED Represents the event of a change to a visually distinct section of the user interface. |
int | TYPE_NOTIFICATION_STATE_CHANGED Represents the event showing a android.app.Notification . |
int | TYPE_VIEW_HOVER_ENTER Represents the event of a hover enter over a android.view.View . |
int | TYPE_VIEW_HOVER_EXIT Represents the event of a hover exit over a android.view.View . |
int | TYPE_TOUCH_EXPLORATION_GESTURE_START Represents the event of starting a touch exploration gesture. |
int | TYPE_TOUCH_EXPLORATION_GESTURE_END Represents the event of ending a touch exploration gesture. |
int | TYPE_WINDOW_CONTENT_CHANGED Represents the event of changing the content of a window and more specifically the sub-tree rooted at the event's source. |
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 android.widget.EditText . |
int | TYPE_ANNOUNCEMENT Represents the event of an application making an announcement. |
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_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY Represents the event of traversing the text of a view at a given movement granularity. |
int | TYPE_GESTURE_DETECTION_START Represents the event of beginning gesture detection. |
int | TYPE_GESTURE_DETECTION_END Represents the event of ending gesture detection. |
int | TYPE_TOUCH_INTERACTION_START Represents the event of the user starting to touch the screen. |
int | TYPE_TOUCH_INTERACTION_END Represents the event of the user ending to touch the screen. |
int | TYPE_WINDOWS_CHANGED Represents the event change in the system windows shown on the screen. |
int | TYPE_VIEW_CONTEXT_CLICKED Represents the event of a context click on a android.view.View . |
int | TYPE_ASSIST_READING_CONTEXT Represents the event of the assistant currently reading the users screen context. |
int | CONTENT_CHANGE_TYPE_SUBTREE 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. |
int | TYPES_ALL_MASK Mask for AccessibilityEvent all types. |
Parcelable.Creator | CREATOR |
void | appendRecord(AccessibilityRecord record) Appends an AccessibilityRecord to the end of event records. |
int | getAction() Gets the performed action that triggered this event. |
int | getAddedCount() Gets the number of added characters. |
CharSequence | getBeforeText() Gets the text before a change. |
Class> | getClass() Returns the runtime class of this Object . |
CharSequence | getClassName() Gets the class name of the source. |
int | getContentChangeTypes() Gets the bit mask of change types signaled by a #TYPE_WINDOW_CONTENT_CHANGED event or #TYPE_WINDOW_STATE_CHANGED . |
CharSequence | getContentDescription() Gets the description of the source. |
int | getCurrentItemIndex() Gets the index of the source in the list of items the can be visited. |
long | getEventTime() Gets the time in which this event was sent. |
int | getEventType() Gets the event type. |
int | getFromIndex() Gets the index of the first character of the changed sequence, or the beginning of a text selection or the index of the first visible item when scrolling. |
int | getItemCount() Gets the number of items that can be visited. |
int | getMovementGranularity() Gets the movement granularity that was traversed. |
CharSequence | getPackageName() Gets the package name of the source. |
Parcelable | getParcelableData() Gets the Parcelable data. |
int | getRecordCount() Gets the number of records contained in the event. |
int | getRemovedCount() Gets the number of removed characters. |
int | getScrollX() Gets the scroll offset of the source left edge in pixels. |
int | getScrollY() Gets the scroll offset of the source top edge in pixels. |
AccessibilityNodeInfo | getSource() Gets the AccessibilityNodeInfo of the event source. |
List | getText() Gets the text of the event. |
int | getToIndex() Gets the index of text selection end or the index of the last visible item when scrolling. |
int | getWindowId() Gets the id of the window from which the event comes from. |
boolean | isChecked() Gets if the source is checked. |
boolean | isEnabled() Gets if the source is enabled. |
boolean | isFullScreen() Gets if the source is taking the entire screen. |
boolean | isPassword() Gets if the source is a password field. |
AccessibilityEvent | obtain(int eventType) Returns a cached instance if such is available or a new one is instantiated with its type property set. |
AccessibilityEvent | obtain(AccessibilityEvent event) Returns a cached instance if such is available or a new one is created. |
AccessibilityEvent | obtain() Returns a cached instance if such is available or a new one is instantiated. |
void | recycle() Recycles an instance back to be reused. |
void | setAction(int action) Sets the performed action that triggered this event. |
void | setAddedCount(int addedCount) Sets the number of added characters. |
void | setChecked(boolean isChecked) Sets if the source is checked. |
void | setClassName(CharSequence className) Sets the class name of the source. |
void | setContentDescription(CharSequence contentDescription) Sets the description of the source. |
void | setCurrentItemIndex(int currentItemIndex) Sets the index of the source in the list of items that can be visited. |
void | setEnabled(boolean isEnabled) Sets if the source is enabled. |
void | setEventTime(long eventTime) Sets the time in which this event was sent. |
void | setEventType(@EventType int eventType) Sets the event type. |
void | setFromIndex(int fromIndex) Sets the index of the first character of the changed sequence or the beginning of a text selection or the index of the first visible item when scrolling. |
void | setFullScreen(boolean isFullScreen) Sets if the source is taking the entire screen. |
void | setItemCount(int itemCount) Sets the number of items that can be visited. |
void | setPackageName(CharSequence packageName) Sets the package name of the source. |
void | setParcelableData(Parcelable parcelableData) Sets the Parcelable data of the event. |
void | setPassword(boolean isPassword) Sets if the source is a password field. |
void | setScrollable(boolean scrollable) Sets if the source is scrollable. |
void | setScrollY(int scrollY) Sets the scroll offset of the source top edge in pixels. |
void | setSource(View source) Sets the event source. |
void | setToIndex(int toIndex) Sets the index of text selection end or the index of the last visible item when scrolling. |
String | toString() |
void | writeToParcel(Parcel parcel, int flags) |