Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#constants) \| [Inherited Constants](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#inhconstants) \| [Fields](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#lfields) \| [Ctors](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#pubctors) \| [Methods](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#inhmethods)

# AccessibilityEvent

*** ** * ** ***

` public final class AccessibilityEvent `   
` ` ` extends https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord ` ` implements https://developer.android.com/reference/android/os/Parcelable `

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.view.accessibility.AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord) ||
|   | ↳ | android.view.accessibility.AccessibilityEvent |

<br />

*** ** * ** ***

<br />

This class represents accessibility events that are sent by the system when something notable happens in the user interface. For example, when a `https://developer.android.com/reference/android/widget/Button` is clicked, a `https://developer.android.com/reference/android/view/View` is focused, etc.

An accessibility event is fired by an individual view which populates the event with data for its state and requests from its parent to send the event to interested parties. The parent can optionally modify or even block the event based on its broader understanding of the user interface's context.

The main purpose of an accessibility event is to communicate changes in the UI to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`. If needed, the service may then inspect the user interface by examining the View hierarchy through the event's `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()`, as represented by a tree of `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo`s (snapshot of a View state) which can be used for exploring the window content. Note that the privilege for accessing an event's source, thus the window content, has to be explicitly requested. For more details refer to `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`. If an accessibility service has not requested to retrieve the window content the event will not contain reference to its source. **Note:** for events of type `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED` the source is never available, and Views that set `https://developer.android.com/reference/android/view/View#isAccessibilityDataSensitive()` may not populate all event properties on events sent from higher up in the view hierarchy.

This class represents various semantically different accessibility event types. Each event type has an associated set of related properties. In other words, each event type is characterized via a subset of the properties exposed by this class. For each event type there is a corresponding constant defined in this class. Follows a specification of the event types and their associated properties:

### Developer Guides

For more information about creating and processing AccessibilityEvents, read the [Accessibility](https://developer.android.com/guide/topics/ui/accessibility) developer guide.

**VIEW TYPES**   

**View clicked** - represents the event of clicking on a `https://developer.android.com/reference/android/view/View` like `https://developer.android.com/reference/android/widget/Button`, `https://developer.android.com/reference/android/widget/CompoundButton`, etc.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CLICKED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**View long clicked** - represents the event of long clicking on a `https://developer.android.com/reference/android/view/View` like `https://developer.android.com/reference/android/widget/Button`, `https://developer.android.com/reference/android/widget/CompoundButton`, etc   
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_LONG_CLICKED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**View selected** - represents the event of selecting an item usually in the context of an `https://developer.android.com/reference/android/widget/AdapterView`.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SELECTED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**View focused** - represents the event of focusing a `https://developer.android.com/reference/android/view/View`.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_FOCUSED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**View text changed** - represents the event of changing the text of an `https://developer.android.com/reference/android/widget/EditText`.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getText()` - The new text of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getBeforeText()` - The text of the source before the change.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getFromIndex()` - The text change start index.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getAddedCount()` - The number of added characters.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getRemovedCount()` - The number of removed characters.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getTextChangeTypes()` - The type of text changes, if any.

<br />

**View text selection changed** - represents the event of changing the text selection of an `https://developer.android.com/reference/android/widget/EditText`.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED`   
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**View text traversed at movement granularity** - represents the event of traversing the text of a view at a given granularity. For example, moving to the next word.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY`   
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getMovementGranularity()` - Sets the granularity at which a view's text was traversed.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getText()` - The text of the source's sub-tree.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getFromIndex()` - The start the text that was skipped over in this movement. This is the starting point when moving forward through the text, but not when moving back.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getToIndex()` - The end of the text that was skipped over in this movement. This is the ending point when moving forward through the text, but not when moving back.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getAction()` - Gets traversal action which specifies the direction.

<br />

**View scrolled** - represents the event of scrolling a view.   
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SCROLLED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getScrollDeltaX()` - The difference in the horizontal position.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getScrollDeltaY()` - The difference in the vertical position.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getMaxScrollX()` ()} - The max scroll offset of the source left edge
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getMaxScrollY()` ()} - The max scroll offset of the source top edge.

<br />

**TRANSITION TYPES**   

**Window state changed** - represents the event of a change to a section of the user interface that is visually distinct. Should be sent from either the root view of a window or from a view that is marked as a pane `https://developer.android.com/reference/android/view/View#setAccessibilityPaneTitle(java.lang.CharSequence)`. Note that changes to true windows are represented by `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED`.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getContentChangeTypes()` - The type of state changes.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getText()` - The text of the source's sub-tree, including the pane titles.

<br />

**Window content changed** - represents the event of change in the content of a window. This change can be adding/removing view, changing a view size, etc.  

*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getContentChangeTypes()` - The type of content changes.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**Windows changed** - represents a change in the windows shown on the screen such as a window appeared, a window disappeared, a window size changed, a window layer changed, etc. These events should only come from the system, which is responsible for managing windows. The list of windows is available from `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService#getWindows()`. For regions of the user interface that are presented as windows but are controlled by an app's process, use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED`.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getWindowChanges()`
- The specific change to the source window

*Note:* You can retrieve the `https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo` for the window source of the event by looking through the list returned by `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService#getWindows()` for the window whose ID matches `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getWindowId()`.

<br />

**NOTIFICATION TYPES**   

**Notification state changed** - represents the event showing a transient piece of information to the user. This information may be a `https://developer.android.com/reference/android/app/Notification` or `https://developer.android.com/reference/android/widget/Toast`.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getParcelableData()` - The posted `https://developer.android.com/reference/android/app/Notification`, if applicable.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getText()` - Displayed text of the `https://developer.android.com/reference/android/widget/Toast`, if applicable, or may contain text from the `https://developer.android.com/reference/android/app/Notification`, although `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getParcelableData()` is a richer set of data for `https://developer.android.com/reference/android/app/Notification`.

<br />

**EXPLORATION TYPES**   

**View hover enter** - represents the event of beginning to hover over a `https://developer.android.com/reference/android/view/View`. The hover may be generated via exploring the screen by touch or via a pointing device.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_ENTER`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**View hover exit** - represents the event of stopping to hover over a `https://developer.android.com/reference/android/view/View`. The hover may be generated via exploring the screen by touch or via a pointing device.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_EXIT`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**View scrolled to** - represents the event of a target node brought on screen by ACTION_SCROLL_IN_DIRECTION. *Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TARGETED_BY_SCROLL`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients). This represents the node that is brought on screen as a result of the scroll.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

**Touch interaction start** - represents the event of starting a touch interaction, which is the user starts touching the screen.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_START`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.

*Note:* This event is fired only by the system and is not passed to the view tree to be populated.  

<br />

**Touch interaction end** - represents the event of ending a touch interaction, which is the user stops touching the screen.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_END`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.

*Note:* This event is fired only by the system and is not passed to the view tree to be populated.  

<br />

**Touch exploration gesture start** - represents the event of starting a touch exploring gesture.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.

*Note:* This event is fired only by the system and is not passed to the view tree to be populated.  

<br />

**Touch exploration gesture end** - represents the event of ending a touch exploring gesture.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.

*Note:* This event is fired only by the system and is not passed to the view tree to be populated.  

<br />

**Touch gesture detection start** - represents the event of starting a user gesture detection.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_START`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.

*Note:* This event is fired only by the system and is not passed to the view tree to be populated.  

<br />

**Touch gesture detection end** - represents the event of ending a user gesture detection.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_END`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.

*Note:* This event is fired only by the system and is not passed to the view tree to be populated.  

<br />

**MISCELLANEOUS TYPES**   

**Announcement** - represents the event of an application requesting a screen reader to make an announcement. Because the event carries no semantic meaning, this event is appropriate only in exceptional situations where additional screen reader output is needed but other types of accessibility services do not need to be aware of the change.  
*Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ANNOUNCEMENT`  
*Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()` - The type of the event.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()` - The source info (for registered clients).
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()` - The class name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getText()` - The text of the announcement.

<br />

**speechStateChanged** *Type:* `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE`  

Represents a change in the speech state defined by the bit mask of the speech state change types. A change in the speech state occurs when an application wants to signal that it is either speaking or listening for human speech. This event helps avoid conflicts where two applications want to speak or one listens when another speaks. When sending this event, the sender should ensure that the accompanying state change types make sense. For example, the sender should not send `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_START` and `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_END` together. *Properties:*   

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getSpeechStateChangeTypes()` - The type of state changes
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()` - The package name of the source.
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()` - The event time.

<br />

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityManager`
- `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo`

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CHECKED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its checked state, which is returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getChecked()`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The node's content description changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CONTENT_INVALID` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its content validity returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#isContentInvalid()`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_CANCELLED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: A drag in with accessibility enabled has ended. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_DROPPED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: A drag in with accessibility enabled has ended. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_STARTED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: A drag has started while accessibility is enabled. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_ENABLED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its ability to interact returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#isEnabled()`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_ERROR` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its erroneous content's error message returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getError()`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_EXPANDED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its expanded state which is returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getExpandedState()`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_APPEARED` Change type for `https://developer.android.com/reference/android/view/accessibility/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` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_DISAPPEARED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED` event: Can mean one of two slightly different things. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_TITLE` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED` event: The node's pane title changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SORT_DIRECTION` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node's collection item info changed its sort direction state for the data corresponding to this collection item, which is returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.CollectionItemInfo#getSortDirection()`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_STATE_DESCRIPTION` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: state description of the node as returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getStateDescription()` changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SUBTREE` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#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` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its supplemental description, which is returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getSupplementalDescription()`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_TEXT` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The node's text changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_UNDEFINED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The type of change is not defined. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#INVALID_POSITION` Invalid selection/focus position. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#MAX_TEXT_LENGTH` Maximum length of the text fields. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_LISTENING_END` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event: another service is no longer listening to the microphone. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_LISTENING_START` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event: another service is listening to the microphone. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_END` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event: another service is no longer speaking. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_START` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event: another service is speaking. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_COMMITTED_BY_IME` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event indicating that the text change is the result of an IME committing its composing text. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_CONVERSION_SUGGESTION_SELECTED_BY_IME` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event indicating that the text change was triggered by the user selecting a conversion suggestion from an IME. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_IN_COMPOSITION` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event indicating that the text change occurred within an ongoing IME composition. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_UNDEFINED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event indicating the type of the text change is not defined. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPES_ALL_MASK` Mask for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` all types. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ANNOUNCEMENT` *This constant was deprecated in API level 36. Use one of the semantic alternative methods described in the documentation of `https://developer.android.com/reference/android/view/View#announceForAccessibility(java.lang.CharSequence)` instead of using this event, as accessibility services may choose to ignore dispatch of this event type.* |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ASSIST_READING_CONTEXT` Represents the event of the assistant currently reading the users screen context. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_END` Represents the event of ending gesture detection. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_START` Represents the event of beginning gesture detection. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED` Represents the event showing a `https://developer.android.com/reference/android/app/Notification`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` Represents a change in the speech state defined by the speech state change types. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END` Represents the event of ending a touch exploration gesture. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START` Represents the event of starting a touch exploration gesture. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_END` Represents the event of the user ending to touch the screen. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_START` Represents the event of the user starting to touch the screen. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUSED` Represents the event of gaining accessibility focus. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED` Represents the event of clearing accessibility focus. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CLICKED` Represents the event of clicking on a `https://developer.android.com/reference/android/view/View` like `https://developer.android.com/reference/android/widget/Button`, `https://developer.android.com/reference/android/widget/CompoundButton`, etc. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CONTEXT_CLICKED` Represents the event of a context click on a `https://developer.android.com/reference/android/view/View`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_FOCUSED` Represents the event of setting input focus of a `https://developer.android.com/reference/android/view/View`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_ENTER` Represents the event of a hover enter over a `https://developer.android.com/reference/android/view/View`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_EXIT` Represents the event of a hover exit over a `https://developer.android.com/reference/android/view/View`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_LONG_CLICKED` Represents the event of long clicking on a `https://developer.android.com/reference/android/view/View` like `https://developer.android.com/reference/android/widget/Button`, `https://developer.android.com/reference/android/widget/CompoundButton`, etc. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SCROLLED` Represents the event of scrolling a view. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SELECTED` Represents the event of selecting an item usually in the context of an `https://developer.android.com/reference/android/widget/AdapterView`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TARGETED_BY_SCROLL` Represents the event of a scroll having completed and brought the target node on screen. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` Represents the event of changing the text of an `https://developer.android.com/reference/android/widget/EditText`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED` Represents the event of changing the selection in an `https://developer.android.com/reference/android/widget/EditText`. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY` Represents the event of traversing the text of a view at a given movement granularity. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` Represents the event change in the system windows shown on the screen. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#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` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED` Represents the event of a change to a visually distinct section of the user interface. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's `https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo#isAccessibilityFocused()` changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_ACTIVE` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's `https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo#isActive()` changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_ADDED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window was added. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_BOUNDS` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's bounds changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_CHILDREN` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's children changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_FOCUSED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's `https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo#isFocused()` changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_LAYER` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's layer changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_PARENT` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's parent changed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_PIP` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window either entered or exited picture-in-picture mode. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_REMOVED` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: A window was removed. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_TITLE` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's title changed. |

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent>` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CREATOR` <br /> |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent()() ` Creates a new `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent`. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event) ` Copy constructor. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent(int)(int eventType) ` Creates a new `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` with the given `eventType`. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#appendRecord(android.view.accessibility.AccessibilityRecord)(https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord record) ` Appends an `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord` to the end of event records. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` static https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#eventTypeToString(int)(int eventType) ` Returns the string representation of an event type. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getAction()() ` Gets the performed action that triggered this event. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getContentChangeTypes()() ` Gets the bit mask of change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event or `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED`. |
| ` long` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventTime()() ` Gets the time in which this event was sent. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getEventType()() ` Gets the event type. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getMovementGranularity()() ` Gets the movement granularity that was traversed. |
| ` https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getPackageName()() ` Gets the package name of the source. |
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getRecord(int)(int index) ` Gets the record at a given index. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getRecordCount()() ` Gets the number of records contained in the event. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getSpeechStateChangeTypes()() ` Gets the bit mask of the speech state signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getTextChangeTypes()() ` Gets the bit mask of the text change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getWindowChanges()() ` Get the bit mask of change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#initFromParcel(android.os.Parcel)(https://developer.android.com/reference/android/os/Parcel parcel) ` Creates a new instance from a `https://developer.android.com/reference/android/os/Parcel`. |
| ` boolean` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#isAccessibilityDataSensitive()() ` Whether the event should only be delivered to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService` with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()` property set to true. |
| ` static https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#obtain(android.view.accessibility.AccessibilityEvent)(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent event) ` *This method was deprecated in API level 33. Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent()` instead.* |
| ` static https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#obtain()() ` *This method was deprecated in API level 33. Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent()` instead.* |
| ` static https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#obtain(int)(int eventType) ` *This method was deprecated in API level 33. Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent()` instead.* |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#recycle()() ` *This method was deprecated in API level 33. Object pooling has been discontinued. Calling this function now will have no effect.* |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setAccessibilityDataSensitive(boolean)(boolean accessibilityDataSensitive) ` Sets whether the event should only be delivered to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService` with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()` property set to true. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setAction(int)(int action) ` Sets the performed action that triggered this event. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setContentChangeTypes(int)(int changeTypes) ` Sets the bit mask of node tree changes signaled by an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setEventTime(long)(long eventTime) ` Sets the time in which this event was sent. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setEventType(int)(int eventType) ` Sets the event type. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setMovementGranularity(int)(int granularity) ` Sets the movement granularity that was traversed. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setPackageName(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence packageName) ` Sets the package name of the source. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setSpeechStateChangeTypes(int)(int state) ` Sets the bit mask of the speech state change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setTextChangeTypes(int)(int types) ` Sets the bit mask of the text change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel parcel, int flags) ` Flatten this object in to a Parcel. |

### Inherited methods

From class ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord ` ` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getAddedCount()() `

Gets the number of added characters.
` https://developer.android.com/reference/java/lang/CharSequence` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getBeforeText()() `

Gets the text before a change.
` https://developer.android.com/reference/java/lang/CharSequence` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getClassName()() `

Gets the class name of the source.
` https://developer.android.com/reference/java/lang/CharSequence` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getContentDescription()() `

Gets the description of the source.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getCurrentItemIndex()() `

Gets the index of the source in the list of items the can be visited.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getDisplayId()() `

Gets the id of the display from which the event comes from.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#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` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getItemCount()() `

Gets the number of items that can be visited.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getMaxScrollX()() `

Gets the max scroll offset of the source left edge in pixels.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getMaxScrollY()() `

Gets the max scroll offset of the source top edge in pixels.
` https://developer.android.com/reference/android/os/Parcelable` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getParcelableData()() `

Gets the `https://developer.android.com/reference/android/os/Parcelable` data.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getRemovedCount()() `

Gets the number of removed characters.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getScrollDeltaX()() `

Gets the difference in pixels between the horizontal position before the scroll and the current horizontal position
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getScrollDeltaY()() `

Gets the difference in pixels between the vertical position before the scroll and the current vertical position
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getScrollX()() `

Gets the scroll offset of the source left edge in pixels.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getScrollY()() `

Gets the scroll offset of the source top edge in pixels.
` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource()() `

Gets the `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` of the event source.
` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getSource(int)(int prefetchingStrategy) `

Gets the `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo` of the event source.
` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/java/lang/CharSequence>` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getText()() `

Gets the text of the event.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getToIndex()() `

Gets the index of text selection end or the index of the last visible item when scrolling.
` int` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getWindowId()() `

Returns the id of the window that sent this event, or owns UI that sent this event.
` boolean` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#isChecked()() `

Gets if the source is checked.
` boolean` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#isEnabled()() `

Gets if the source is enabled.
` boolean` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#isFullScreen()() `

Gets if the source is taking the entire screen.
` boolean` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#isPassword()() `

Gets if the source is a password field.
` boolean` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#isScrollable()() `

Gets if the source is scrollable.
` static https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#obtain(android.view.accessibility.AccessibilityRecord)(https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord record) `

*This method was deprecated in API level 33. Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#AccessibilityRecord()` instead.*
` static https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#obtain()() `

*This method was deprecated in API level 33. Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#AccessibilityRecord()` instead.*
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#recycle()() `

*This method was deprecated in API level 33. Object pooling has been discontinued. Calling this function now will have no effect.*
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setAddedCount(int)(int addedCount) `

Sets the number of added characters.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setBeforeText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence beforeText) `

Sets the text before a change.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setChecked(boolean)(boolean isChecked) `

Sets if the source is checked.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setClassName(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence className) `

Sets the class name of the source.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setContentDescription(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence contentDescription) `

Sets the description of the source.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setCurrentItemIndex(int)(int currentItemIndex) `

Sets the index of the source in the list of items that can be visited.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setEnabled(boolean)(boolean isEnabled) `

Sets if the source is enabled.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setFromIndex(int)(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` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setFullScreen(boolean)(boolean isFullScreen) `

Sets if the source is taking the entire screen.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setItemCount(int)(int itemCount) `

Sets the number of items that can be visited.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setMaxScrollX(int)(int maxScrollX) `

Sets the max scroll offset of the source left edge in pixels.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setMaxScrollY(int)(int maxScrollY) `

Sets the max scroll offset of the source top edge in pixels.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setParcelableData(android.os.Parcelable)(https://developer.android.com/reference/android/os/Parcelable parcelableData) `

Sets the `https://developer.android.com/reference/android/os/Parcelable` data of the event.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setPassword(boolean)(boolean isPassword) `

Sets if the source is a password field.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setRemovedCount(int)(int removedCount) `

Sets the number of removed characters.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setScrollDeltaX(int)(int scrollDeltaX) `

Sets the difference in pixels between the horizontal position before the scroll and the current horizontal position
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setScrollDeltaY(int)(int scrollDeltaY) `

Sets the difference in pixels between the vertical position before the scroll and the current vertical position
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setScrollX(int)(int scrollX) `

Sets the scroll offset of the source left edge in pixels.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setScrollY(int)(int scrollY) `

Sets the scroll offset of the source top edge in pixels.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setScrollable(boolean)(boolean scrollable) `

Sets if the source is scrollable.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setSource(android.view.View,%20int)(https://developer.android.com/reference/android/view/View root, int virtualDescendantId) `

Sets the source to be a virtual descendant of the given `root`.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setSource(android.view.View)(https://developer.android.com/reference/android/view/View source) `

Sets the event source.
` void` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setToIndex(int)(int toIndex) `

Sets the index of text selection end or the index of the last visible item when scrolling.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#toString()() `

Returns a string representation of the object.
From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/os/Parcelable ` ` abstract int` ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() `

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
` abstract void` ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) `

Flatten this object in to a Parcel.

## Constants

### CONTENT_CHANGE_TYPE_CHECKED

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_CHECKED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its checked state, which is returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getChecked()`. The view changing its checked state should call `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setChecked(int)` and then send this event.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getChecked()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setChecked(int)`

Constant Value: 8192 (0x00002000)

### CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The node's content description changed.

<br />

Constant Value: 4 (0x00000004)

### CONTENT_CHANGE_TYPE_CONTENT_INVALID

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_CONTENT_INVALID
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its content validity returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#isContentInvalid()`. The view changing content validity should call `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setContentInvalid(boolean)` and then send this event.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#isContentInvalid()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setContentInvalid(boolean)`

Constant Value: 1024 (0x00000400)

### CONTENT_CHANGE_TYPE_DRAG_CANCELLED

Added in [API level 32](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_DRAG_CANCELLED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: A drag in with accessibility enabled has ended. This means the content has been unsuccessfully dropped, the user has canceled the action via an AccessibilityAction, or no drop has been detected within a timeout and the drag was automatically cancelled. This is sent from the source that initiated the drag.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_DRAG_CANCEL`

Constant Value: 512 (0x00000200)

### CONTENT_CHANGE_TYPE_DRAG_DROPPED

Added in [API level 32](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_DRAG_DROPPED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: A drag in with accessibility enabled has ended. This means the content has been successfully dropped. This is sent from the target that accepted the dragged content.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_DRAG_DROP`

Constant Value: 256 (0x00000100)

### CONTENT_CHANGE_TYPE_DRAG_STARTED

Added in [API level 32](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_DRAG_STARTED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: A drag has started while accessibility is enabled. This is either via an AccessibilityAction, or via touch events. This is sent from the source that initiated the drag.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_DRAG_START`

Constant Value: 128 (0x00000080)

### CONTENT_CHANGE_TYPE_ENABLED

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_ENABLED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its ability to interact returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#isEnabled()`. The view changing content's ability to interact should call `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setEnabled(boolean)` and then send this event.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#isEnabled()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setEnabled(boolean)`

Constant Value: 4096 (0x00001000)

### CONTENT_CHANGE_TYPE_ERROR

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_ERROR
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its erroneous content's error message returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getError()`. The view changing erroneous content's error message should call `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setError(java.lang.CharSequence)` and then send this event.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getError()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setError(java.lang.CharSequence)`

Constant Value: 2048 (0x00000800)

### CONTENT_CHANGE_TYPE_EXPANDED

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_EXPANDED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its expanded state which is returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getExpandedState()`. The view changing the node's expanded state should call `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setExpandedState(int)` and then send this event.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getExpandedState()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setExpandedState(int)`

Constant Value: 16384 (0x00004000)

### CONTENT_CHANGE_TYPE_PANE_APPEARED

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_PANE_APPEARED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/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.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/View#setAccessibilityPaneTitle(java.lang.CharSequence)`

Constant Value: 16 (0x00000010)

### CONTENT_CHANGE_TYPE_PANE_DISAPPEARED

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_PANE_DISAPPEARED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/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 will 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 `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getText()` will return the value that would have been returned by `getSource().getPaneTitle()`.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/View#setAccessibilityPaneTitle(java.lang.CharSequence)`

Constant Value: 32 (0x00000020)

### CONTENT_CHANGE_TYPE_PANE_TITLE

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_PANE_TITLE
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED` event: The node's pane title changed.

If this makes the pane appear, `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_APPEARED` is sent instead. If this makes the pane disappear, `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_DISAPPEARED` is sent.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/View#setAccessibilityPaneTitle(java.lang.CharSequence)`

Constant Value: 8 (0x00000008)

### CONTENT_CHANGE_TYPE_SORT_DIRECTION

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int CONTENT_CHANGE_TYPE_SORT_DIRECTION
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node's collection item info changed its sort direction state for the data corresponding to this collection item, which is returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.CollectionItemInfo#getSortDirection()`. The view changing its collection item info's sort direction should set a `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.CollectionItemInfo` created with `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.CollectionItemInfo.Builder#setSortDirection(int)` and then send this event.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.CollectionItemInfo#getSortDirection()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.CollectionItemInfo.Builder#setSortDirection(int)`

Constant Value: 65536 (0x00010000)

### CONTENT_CHANGE_TYPE_STATE_DESCRIPTION

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_STATE_DESCRIPTION
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: state description of the node as returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getStateDescription()` changed. If part of the state description changes, the changed part can be put into event text. For example, if state description changed from "on, wifi signal full" to "on, wifi three bars", "wifi three bars" can be put into the event text.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/View#setStateDescription(java.lang.CharSequence)`

Constant Value: 64 (0x00000040)

### CONTENT_CHANGE_TYPE_SUBTREE

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_SUBTREE
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#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.

<br />

Constant Value: 1 (0x00000001)

### CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The source node changed its supplemental description, which is returned by `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getSupplementalDescription()`. The view changing its supplemental description should call `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setSupplementalDescription(java.lang.CharSequence)` and then send this event.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getSupplementalDescription()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setSupplementalDescription(java.lang.CharSequence)`

Constant Value: 32768 (0x00008000)

### CONTENT_CHANGE_TYPE_TEXT

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_TEXT
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The node's text changed.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setText(java.lang.CharSequence)`

Constant Value: 2 (0x00000002)

### CONTENT_CHANGE_TYPE_UNDEFINED

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONTENT_CHANGE_TYPE_UNDEFINED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event: The type of change is not defined.

<br />

Constant Value: 0 (0x00000000)

### INVALID_POSITION

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int INVALID_POSITION
```

Invalid selection/focus position.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getCurrentItemIndex()`

Constant Value: -1 (0xffffffff)

### MAX_TEXT_LENGTH

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MAX_TEXT_LENGTH
```

Maximum length of the text fields.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getBeforeText()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#getText()`

Constant Value: 500 (0x000001f4)

### SPEECH_STATE_LISTENING_END

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SPEECH_STATE_LISTENING_END
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event: another service is no longer listening to the microphone.

<br />

Constant Value: 8 (0x00000008)

### SPEECH_STATE_LISTENING_START

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SPEECH_STATE_LISTENING_START
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event: another service is listening to the microphone.

<br />

Constant Value: 4 (0x00000004)

### SPEECH_STATE_SPEAKING_END

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SPEECH_STATE_SPEAKING_END
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event: another service is no longer speaking.

<br />

Constant Value: 2 (0x00000002)

### SPEECH_STATE_SPEAKING_START

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SPEECH_STATE_SPEAKING_START
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event: another service is speaking.

<br />

Constant Value: 1 (0x00000001)

### TEXT_CHANGE_TYPE_COMMITTED_BY_IME

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TEXT_CHANGE_TYPE_COMMITTED_BY_IME
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event indicating that the text change is the result of an IME committing its composing text.

The TYPE_VIEW_TEXT_CHANGED event may appear as a replacement of the text with an identical string, but this type can be a signal to accessibility services that this change represents text finalization.

<br />

Constant Value: 2 (0x00000002)

### TEXT_CHANGE_TYPE_CONVERSION_SUGGESTION_SELECTED_BY_IME

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TEXT_CHANGE_TYPE_CONVERSION_SUGGESTION_SELECTED_BY_IME
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event indicating that the text change was triggered by the user selecting a conversion suggestion from an IME.

This type provides a hint to accessibility services that the IME might also send a separate, more detailed event representing the selection itself. That event may provide more comprehensive information than this text change event.

<br />

Constant Value: 4 (0x00000004)

### TEXT_CHANGE_TYPE_IN_COMPOSITION

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TEXT_CHANGE_TYPE_IN_COMPOSITION
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event indicating that the text change occurred within an ongoing IME composition.

The text change occurred within an ongoing IME composition. This indicates the text is transient and not yet committed. For IMEs that predict text or requires multiple steps to compose a glyph or word, the TYPE_VIEW_TEXT_CHANGED event may appear as a replacement of the entire composing text rather than an incremental change. This flag helps services understand the nature of such intermediate text updates.

<br />

Constant Value: 1 (0x00000001)

### TEXT_CHANGE_TYPE_UNDEFINED

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TEXT_CHANGE_TYPE_UNDEFINED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event indicating the type of the text change is not defined.

<br />

Constant Value: 0 (0x00000000)

### TYPES_ALL_MASK

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPES_ALL_MASK
```

Mask for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` all types.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CLICKED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_LONG_CLICKED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SELECTED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_FOCUSED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_ENTER`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_EXIT`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SCROLLED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ANNOUNCEMENT`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUSED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_START`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_END`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_START`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_END`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CONTEXT_CLICKED`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ASSIST_READING_CONTEXT`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TARGETED_BY_SCROLL`

Constant Value: -1 (0xffffffff)

### TYPE_ANNOUNCEMENT

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_ANNOUNCEMENT
```

<br />

**This constant was deprecated in API level 36.**   

Use one of the semantic alternative methods described in the documentation of `https://developer.android.com/reference/android/view/View#announceForAccessibility(java.lang.CharSequence)` instead of using this event, as accessibility services may choose to ignore dispatch of this event type.

Represents the event of an application making an announcement.

<br />

Constant Value: 16384 (0x00004000)

### TYPE_ASSIST_READING_CONTEXT

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_ASSIST_READING_CONTEXT
```

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

<br />

Constant Value: 16777216 (0x01000000)

### TYPE_GESTURE_DETECTION_END

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_GESTURE_DETECTION_END
```

Represents the event of ending gesture detection.

<br />

Constant Value: 524288 (0x00080000)

### TYPE_GESTURE_DETECTION_START

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_GESTURE_DETECTION_START
```

Represents the event of beginning gesture detection.

<br />

Constant Value: 262144 (0x00040000)

### TYPE_NOTIFICATION_STATE_CHANGED

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_NOTIFICATION_STATE_CHANGED
```

Represents the event showing a `https://developer.android.com/reference/android/app/Notification`.

<br />

Constant Value: 64 (0x00000040)

### TYPE_SPEECH_STATE_CHANGE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_SPEECH_STATE_CHANGE
```

Represents a change in the speech state defined by the speech state change types. A change in the speech state occurs when an application wants to signal that it is either speaking or listening for human speech. This event helps avoid conflicts where two applications want to speak or one listens when another speaks. When sending this event, the sender should ensure that the accompanying state change types make sense. For example, the sender should not send `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_START` and `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_END` together.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_START`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_END`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_LISTENING_START`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_LISTENING_END`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getSpeechStateChangeTypes()`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setSpeechStateChangeTypes(int)`

Constant Value: 33554432 (0x02000000)

### TYPE_TOUCH_EXPLORATION_GESTURE_END

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_TOUCH_EXPLORATION_GESTURE_END
```

Represents the event of ending a touch exploration gesture.

<br />

Constant Value: 1024 (0x00000400)

### TYPE_TOUCH_EXPLORATION_GESTURE_START

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_TOUCH_EXPLORATION_GESTURE_START
```

Represents the event of starting a touch exploration gesture.

<br />

Constant Value: 512 (0x00000200)

### TYPE_TOUCH_INTERACTION_END

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_TOUCH_INTERACTION_END
```

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

<br />

Constant Value: 2097152 (0x00200000)

### TYPE_TOUCH_INTERACTION_START

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_TOUCH_INTERACTION_START
```

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

<br />

Constant Value: 1048576 (0x00100000)

### TYPE_VIEW_ACCESSIBILITY_FOCUSED

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_ACCESSIBILITY_FOCUSED
```

Represents the event of gaining accessibility focus.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_ACCESSIBILITY_FOCUS`

Constant Value: 32768 (0x00008000)

### TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
```

Represents the event of clearing accessibility focus.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_ACCESSIBILITY_FOCUS`

Constant Value: 65536 (0x00010000)

### TYPE_VIEW_CLICKED

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_CLICKED
```

Represents the event of clicking on a `https://developer.android.com/reference/android/view/View` like `https://developer.android.com/reference/android/widget/Button`, `https://developer.android.com/reference/android/widget/CompoundButton`, etc.

See `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_CLICK` for more details.

<br />

Constant Value: 1 (0x00000001)

### TYPE_VIEW_CONTEXT_CLICKED

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_CONTEXT_CLICKED
```

Represents the event of a context click on a `https://developer.android.com/reference/android/view/View`.

See `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_CONTEXT_CLICK` for more details.

<br />

Constant Value: 8388608 (0x00800000)

### TYPE_VIEW_FOCUSED

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_FOCUSED
```

Represents the event of setting input focus of a `https://developer.android.com/reference/android/view/View`.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_ACCESSIBILITY_FOCUS`

Constant Value: 8 (0x00000008)

### TYPE_VIEW_HOVER_ENTER

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_HOVER_ENTER
```

Represents the event of a hover enter over a `https://developer.android.com/reference/android/view/View`.

<br />

Constant Value: 128 (0x00000080)

### TYPE_VIEW_HOVER_EXIT

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_HOVER_EXIT
```

Represents the event of a hover exit over a `https://developer.android.com/reference/android/view/View`.

<br />

Constant Value: 256 (0x00000100)

### TYPE_VIEW_LONG_CLICKED

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_LONG_CLICKED
```

Represents the event of long clicking on a `https://developer.android.com/reference/android/view/View` like `https://developer.android.com/reference/android/widget/Button`, `https://developer.android.com/reference/android/widget/CompoundButton`, etc.

See `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_LONG_CLICK` for more details.

<br />

Constant Value: 2 (0x00000002)

### TYPE_VIEW_SCROLLED

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_SCROLLED
```

Represents the event of scrolling a view. This event type is generally not sent directly. In the View system, this is sent in `https://developer.android.com/reference/android/view/View#onScrollChanged(int,%20int,%20int,%20int)`

In addition to the source and package name, the event should populate scroll-specific properties like `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setScrollDeltaX(int)`, `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setScrollDeltaY(int)`, `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setMaxScrollX(int)`, and `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord#setMaxScrollY(int)`.

Services are encouraged to rely on the source to query UI state over AccessibilityEvents properties. For example, to check after a scroll if the bottom of the scrolling UI element has been reached, check if the source node is scrollable and has the `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_SCROLL_BACKWARD` action but not the `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_SCROLL_FORWARD` action. For scrolling to a target, use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TARGETED_BY_SCROLL`.

<br />

Constant Value: 4096 (0x00001000)

### TYPE_VIEW_SELECTED

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_SELECTED
```

Represents the event of selecting an item usually in the context of an `https://developer.android.com/reference/android/widget/AdapterView`.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction#ACTION_SELECT`

Constant Value: 4 (0x00000004)

### TYPE_VIEW_TARGETED_BY_SCROLL

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_TARGETED_BY_SCROLL
```

Represents the event of a scroll having completed and brought the target node on screen.

<br />

Constant Value: 67108864 (0x04000000)

### TYPE_VIEW_TEXT_CHANGED

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_TEXT_CHANGED
```

Represents the event of changing the text of an `https://developer.android.com/reference/android/widget/EditText`.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setText(java.lang.CharSequence)`

Constant Value: 16 (0x00000010)

### TYPE_VIEW_TEXT_SELECTION_CHANGED

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_TEXT_SELECTION_CHANGED
```

Represents the event of changing the selection in an `https://developer.android.com/reference/android/widget/EditText`.

<br />

Constant Value: 8192 (0x00002000)

### TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY
```

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

<br />

Constant Value: 131072 (0x00020000)

### TYPE_WINDOWS_CHANGED

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_WINDOWS_CHANGED
```

Represents the event change in the system windows shown on the screen. This event type should only be dispatched by the system.

<br />

Constant Value: 4194304 (0x00400000)

### TYPE_WINDOW_CONTENT_CHANGED

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final 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.

<br />

Constant Value: 2048 (0x00000800)

### TYPE_WINDOW_STATE_CHANGED

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TYPE_WINDOW_STATE_CHANGED
```

Represents the event of a change to a visually distinct section of the user interface.

These events should only be dispatched from `https://developer.android.com/reference/android/view/View`s that have accessibility pane titles, and replaces `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` for those sources. Details about the change are available from `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getContentChangeTypes()`.

Do not use this to get an accessibility service to make non-pane announcements. Instead, follow the practices described in `https://developer.android.com/reference/android/view/View#announceForAccessibility(java.lang.CharSequence)`. **Note:** this does not suggest calling announceForAccessibility(), but using the suggestions listed in its documentation.

<br />

Constant Value: 32 (0x00000020)

### WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's `https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo#isAccessibilityFocused()` changed.

<br />

Constant Value: 128 (0x00000080)

### WINDOWS_CHANGE_ACTIVE

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_ACTIVE
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's `https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo#isActive()` changed.

<br />

Constant Value: 32 (0x00000020)

### WINDOWS_CHANGE_ADDED

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_ADDED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window was added.

<br />

Constant Value: 1 (0x00000001)

### WINDOWS_CHANGE_BOUNDS

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_BOUNDS
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's bounds changed.

Starting in `https://developer.android.com/reference/android/os/Build.VERSION_CODES#R`, this event implies the window's region changed. It's also possible that region changed but bounds doesn't.

<br />

<br />

Constant Value: 8 (0x00000008)

### WINDOWS_CHANGE_CHILDREN

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_CHILDREN
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's children changed.

<br />

Constant Value: 512 (0x00000200)

### WINDOWS_CHANGE_FOCUSED

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_FOCUSED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's `https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo#isFocused()` changed.

<br />

Constant Value: 64 (0x00000040)

### WINDOWS_CHANGE_LAYER

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_LAYER
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's layer changed.

<br />

Constant Value: 16 (0x00000010)

### WINDOWS_CHANGE_PARENT

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_PARENT
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's parent changed.

<br />

Constant Value: 256 (0x00000100)

### WINDOWS_CHANGE_PIP

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_PIP
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window either entered or exited picture-in-picture mode.

<br />

Constant Value: 1024 (0x00000400)

### WINDOWS_CHANGE_REMOVED

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_REMOVED
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: A window was removed.

<br />

Constant Value: 2 (0x00000002)

### WINDOWS_CHANGE_TITLE

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WINDOWS_CHANGE_TITLE
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event: The window's title changed.

<br />

Constant Value: 4 (0x00000004)

## Fields

### CREATOR

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<AccessibilityEvent> CREATOR
```

<br />

<br />

**See also:**

- `https://developer.android.com/reference/android/os/Parcelable.Creator`

## Public constructors

### AccessibilityEvent

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityEvent ()
```

Creates a new `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent`.

<br />

### AccessibilityEvent

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityEvent (AccessibilityEvent event)
```

Copy constructor. Creates a new `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent`, and this instance is initialized from the given `event`.

<br />

| Parameters ||
|---|---|
| `event` | `AccessibilityEvent`: The other event. This value cannot be `null`. <br /> |

### AccessibilityEvent

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityEvent (int eventType)
```

Creates a new `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` with the given `eventType`.

<br />

| Parameters ||
|---|---|
| `eventType` | `int`: The event type. <br /> |

## Public methods

### appendRecord

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void appendRecord (AccessibilityRecord record)
```

Appends an `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord` to the end of event records.

<br />

| Parameters ||
|---|---|
| `record` | `AccessibilityRecord`: The record to append. A null record is ignored. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If called from an AccessibilityService. |

### describeContents

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`, the return value of this method must include the `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### eventTypeToString

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static String eventTypeToString (int eventType)
```

Returns the string representation of an event type. For example, `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CLICKED` is represented by the string TYPE_VIEW_CLICKED.

<br />

| Parameters ||
|---|---|
| `eventType` | `int`: The event type <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The string representation. <br /> |

### getAction

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getAction ()
```

Gets the performed action that triggered this event.

<br />

| Returns ||
|---|---|
| `int` | The action. <br /> |

### getContentChangeTypes

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getContentChangeTypes ()
```

Gets the bit mask of change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event or `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED`. A single event may represent multiple change types.

<br />

| Returns ||
|---|---|
| `int` | The bit mask of change types. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_UNDEFINED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SUBTREE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_TEXT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_STATE_DESCRIPTION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_TITLE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_APPEARED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_DISAPPEARED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_STARTED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_DROPPED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_CANCELLED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CONTENT_INVALID` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_ERROR` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_ENABLED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CHECKED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_EXPANDED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SORT_DIRECTION` |

### getEventTime

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getEventTime ()
```

Gets the time in which this event was sent.

<br />

| Returns ||
|---|---|
| `long` | The event time. <br /> |

### getEventType

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getEventType ()
```

Gets the event type.

<br />

| Returns ||
|---|---|
| `int` | The event type. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CLICKED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_LONG_CLICKED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SELECTED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_FOCUSED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_ENTER` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_EXIT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SCROLLED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ANNOUNCEMENT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUSED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_END` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_END` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CONTEXT_CLICKED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ASSIST_READING_CONTEXT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TARGETED_BY_SCROLL` |

### getMovementGranularity

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getMovementGranularity ()
```

Gets the movement granularity that was traversed.

<br />

| Returns ||
|---|---|
| `int` | The granularity. <br /> |

### getPackageName

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CharSequence getPackageName ()
```

Gets the package name of the source.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | The package name. <br /> |

### getRecord

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AccessibilityRecord getRecord (int index)
```

Gets the record at a given index.

<br />

| Parameters ||
|---|---|
| `index` | `int`: The index. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord` | The record at the specified index. <br /> |

### getRecordCount

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getRecordCount ()
```

Gets the number of records contained in the event.

<br />

| Returns ||
|---|---|
| `int` | The number of records. <br /> |

### getSpeechStateChangeTypes

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getSpeechStateChangeTypes ()
```

Gets the bit mask of the speech state signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event.

<br />

| Returns ||
|---|---|
| `int` | The bit mask of speech change types. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_END` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_LISTENING_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_LISTENING_END` |

### getTextChangeTypes

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getTextChangeTypes ()
```

Gets the bit mask of the text change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event. A single event may represent multiple change types. Accessibility services can use these types to better understand the nature of text changes.

<br />

| Returns ||
|---|---|
| `int` | The bit mask of change types. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_UNDEFINED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_IN_COMPOSITION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_COMMITTED_BY_IME` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_CONVERSION_SUGGESTION_SELECTED_BY_IME` |

### getWindowChanges

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getWindowChanges ()
```

Get the bit mask of change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` event. A single event may represent multiple change types.

<br />

| Returns ||
|---|---|
| `int` | The bit mask of change types. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_ADDED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_REMOVED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_TITLE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_BOUNDS` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_LAYER` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_ACTIVE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_FOCUSED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_ACCESSIBILITY_FOCUSED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_PARENT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_CHILDREN` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#WINDOWS_CHANGE_PIP` |

### initFromParcel

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void initFromParcel (Parcel parcel)
```

Creates a new instance from a `https://developer.android.com/reference/android/os/Parcel`.

<br />

| Parameters ||
|---|---|
| `parcel` | `Parcel`: A parcel containing the state of a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent`. <br /> |

### isAccessibilityDataSensitive

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isAccessibilityDataSensitive ()
```

Whether the event should only be delivered to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService` with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()` property set to true.

Initial value matches the `https://developer.android.com/reference/android/view/View#isAccessibilityDataSensitive()` property from the event's source node, if present, or false by default.

<br />

<br />

| Returns ||
|---|---|
| `boolean` | True if the event should be delivered only to isAccessibilityTool services, false otherwise. <br /> |

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#setAccessibilityDataSensitive(boolean)`

### obtain

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static AccessibilityEvent obtain (AccessibilityEvent event)
```

<br />

**This method was deprecated in API level 33.**   

Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent()` instead.

Instantiates a new AccessibilityEvent instance. The returned instance is initialized from the given `event`.

<br />

| Parameters ||
|---|---|
| `event` | `AccessibilityEvent`: The other event. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` | An instance. <br /> |

### obtain

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static AccessibilityEvent obtain ()
```

<br />

**This method was deprecated in API level 33.**   

Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent()` instead.

Instantiates a new AccessibilityEvent instance.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` | An instance. <br /> |

### obtain

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static AccessibilityEvent obtain (int eventType)
```

<br />

**This method was deprecated in API level 33.**   

Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#AccessibilityEvent()` instead.

Instantiates a new AccessibilityEvent instance with its type property set.

<br />

| Parameters ||
|---|---|
| `eventType` | `int`: The event type. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent` | An instance. <br /> |

### recycle

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void recycle ()
```

<br />

**This method was deprecated in API level 33.**   

Object pooling has been discontinued. Calling this function now will have no effect.

Previously would recycle an instance back to be reused.

<br />

### setAccessibilityDataSensitive

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAccessibilityDataSensitive (boolean accessibilityDataSensitive)
```

Sets whether the event should only be delivered to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService` with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool()` property set to true.

This will be set automatically based on the event's source (if present). If creating and sending an event directly through `https://developer.android.com/reference/android/view/accessibility/AccessibilityManager` (where an event may have no source) then this method must be called explicitly if you want non-default behavior.

<br />

<br />

| Parameters ||
|---|---|
| `accessibilityDataSensitive` | `boolean`: True if the event should be delivered only to isAccessibilityTool services, false otherwise. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If called from an AccessibilityService. |

### setAction

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAction (int action)
```

Sets the performed action that triggered this event.

Valid actions are defined in `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo`:

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_ACCESSIBILITY_FOCUS`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_CLEAR_ACCESSIBILITY_FOCUS`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_CLEAR_FOCUS`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_CLEAR_SELECTION`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_CLICK`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_LONG_CLICK`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_NEXT_AT_MOVEMENT_GRANULARITY`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_NEXT_HTML_ELEMENT`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_PREVIOUS_HTML_ELEMENT`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_SCROLL_FORWARD`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_SCROLL_BACKWARD`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_COPY`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_PASTE`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_CUT`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_SET_SELECTION`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_EXPAND`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_COLLAPSE`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_DISMISS`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#ACTION_SET_TEXT`
- etc.

<br />

<br />

| Parameters ||
|---|---|
| `action` | `int`: The action. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If called from an AccessibilityService. |

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#performAction(int)`

### setContentChangeTypes

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setContentChangeTypes (int changeTypes)
```

Sets the bit mask of node tree changes signaled by an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` event.

<br />

| Parameters ||
|---|---|
| `changeTypes` | `int`: The bit mask of change types. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_UNDEFINED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SUBTREE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_TEXT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_STATE_DESCRIPTION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_TITLE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_APPEARED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_PANE_DISAPPEARED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_STARTED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_DROPPED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_DRAG_CANCELLED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CONTENT_INVALID` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_ERROR` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_ENABLED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_CHECKED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_EXPANDED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#CONTENT_CHANGE_TYPE_SORT_DIRECTION` |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If called from an AccessibilityService. |

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#getContentChangeTypes()`

### setEventTime

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setEventTime (long eventTime)
```

Sets the time in which this event was sent.

<br />

| Parameters ||
|---|---|
| `eventTime` | `long`: The event time. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If called from an AccessibilityService. |

### setEventType

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setEventType (int eventType)
```

Sets the event type. **Note: An event must represent a single event type.**

<br />

| Parameters ||
|---|---|
| `eventType` | `int`: The event type. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CLICKED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_LONG_CLICKED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SELECTED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_FOCUSED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_ENTER` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_EXIT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SCROLLED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ANNOUNCEMENT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUSED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_GESTURE_DETECTION_END` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_INTERACTION_END` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOWS_CHANGED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CONTEXT_CLICKED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ASSIST_READING_CONTEXT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TARGETED_BY_SCROLL` |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If called from an AccessibilityService. |

### setMovementGranularity

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setMovementGranularity (int granularity)
```

Sets the movement granularity that was traversed.

<br />

| Parameters ||
|---|---|
| `granularity` | `int`: The granularity. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If called from an AccessibilityService. |

### setPackageName

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setPackageName (CharSequence packageName)
```

Sets the package name of the source.

<br />

| Parameters ||
|---|---|
| `packageName` | `CharSequence`: The package name. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException` | If called from an AccessibilityService. |

### setSpeechStateChangeTypes

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setSpeechStateChangeTypes (int state)
```

Sets the bit mask of the speech state change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_SPEECH_STATE_CHANGE` event. The sender is responsible for ensuring that the state change types make sense. For example, the sender should not send `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_START` and `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_END` together.

<br />

| Parameters ||
|---|---|
| `state` | `int`: Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_SPEAKING_END` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_LISTENING_START` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#SPEECH_STATE_LISTENING_END` |

### setTextChangeTypes

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setTextChangeTypes (int types)
```

Sets the bit mask of the text change types signaled by a `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED` event. Providing these change types is optional. If it is not provided, it will default to `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_UNDEFINED`.

<br />

| Parameters ||
|---|---|
| `types` | `int`: Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_UNDEFINED` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_IN_COMPOSITION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_COMMITTED_BY_IME` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TEXT_CHANGE_TYPE_CONVERSION_SUGGESTION_SELECTED_BY_IME` |

### toString

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel parcel, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `parcel` | `Parcel`: The Parcel in which the object should be written. This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |