# AccessibilityEventCompat

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1  
Summary:[Constants](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#constants)\|[Methods](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#)  

# AccessibilityEventCompat

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public

final

class
AccessibilityEventCompat
`  
`

extends Object


``


`

|---|----------------------------------------------------------------|
| java.lang.Object                                                  ||
| ↳ | android.support.v4.view.accessibility.AccessibilityEventCompat |

<br />

*** ** * ** ***

Helper for accessing features in[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html).

## Summary

|                                                                                                                                                                                                             ### Constants                                                                                                                                                                                                             ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION) Change type for[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event: The node's content description changed.       |
| `int` | [CONTENT_CHANGE_TYPE_SUBTREE](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_SUBTREE) Change type for[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event: A node in the subtree rooted at the source node was added or removed. |
| `int` | [CONTENT_CHANGE_TYPE_TEXT](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_TEXT) Change type for[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event: The node's text changed.                                                    |
| `int` | [CONTENT_CHANGE_TYPE_UNDEFINED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_UNDEFINED) Change type for[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event: The type of change is not defined.                                |
| `int` | [TYPES_ALL_MASK](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPES_ALL_MASK) Mask for[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)all types.                                                                                                                                                     |
| `int` | [TYPE_ANNOUNCEMENT](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_ANNOUNCEMENT) Represents the event of an application making an announcement.                                                                                                                                                                                                                   |
| `int` | [TYPE_ASSIST_READING_CONTEXT](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_ASSIST_READING_CONTEXT) Represents the event of the assistant currently reading the users screen context.                                                                                                                                                                            |
| `int` | [TYPE_GESTURE_DETECTION_END](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_END) Represents the event of ending gesture detection.                                                                                                                                                                                                              |
| `int` | [TYPE_GESTURE_DETECTION_START](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_START) Represents the event of beginning gesture detection.                                                                                                                                                                                                       |
| `int` | [TYPE_TOUCH_EXPLORATION_GESTURE_END](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_EXPLORATION_GESTURE_END) *This constant was deprecated in API level 26.1.0. Use[TYPE_TOUCH_EXPLORATION_GESTURE_END](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_END)directly.*            |
| `int` | [TYPE_TOUCH_EXPLORATION_GESTURE_START](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_EXPLORATION_GESTURE_START) *This constant was deprecated in API level 26.1.0. Use[TYPE_TOUCH_EXPLORATION_GESTURE_START](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_START)directly.*    |
| `int` | [TYPE_TOUCH_INTERACTION_END](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_END) Represents the event of the user ending to touch the screen.                                                                                                                                                                                                   |
| `int` | [TYPE_TOUCH_INTERACTION_START](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_START) Represents the event of the user starting to touch the screen.                                                                                                                                                                                             |
| `int` | [TYPE_VIEW_ACCESSIBILITY_FOCUSED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_ACCESSIBILITY_FOCUSED) Represents the event of gaining accessibility focus.                                                                                                                                                                                                 |
| `int` | [TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED) Represents the event of clearing accessibility focus.                                                                                                                                                                                    |
| `int` | [TYPE_VIEW_CONTEXT_CLICKED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_CONTEXT_CLICKED) Represents the event of a context click on a[View](https://developer.android.com/reference/android/view/View.html).                                                                                                                                              |
| `int` | [TYPE_VIEW_HOVER_ENTER](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_HOVER_ENTER) *This constant was deprecated in API level 26.1.0. Use[TYPE_VIEW_HOVER_ENTER](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_ENTER)directly.*                                                                |
| `int` | [TYPE_VIEW_HOVER_EXIT](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_HOVER_EXIT) *This constant was deprecated in API level 26.1.0. Use[TYPE_VIEW_HOVER_EXIT](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_EXIT)directly.*                                                                    |
| `int` | [TYPE_VIEW_SCROLLED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_SCROLLED) *This constant was deprecated in API level 26.1.0. Use[TYPE_VIEW_SCROLLED](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_SCROLLED)directly.*                                                                            |
| `int` | [TYPE_VIEW_TEXT_SELECTION_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TEXT_SELECTION_CHANGED) *This constant was deprecated in API level 26.1.0. Use[TYPE_VIEW_TEXT_SELECTION_CHANGED](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_TEXT_SELECTION_CHANGED)directly.*                    |
| `int` | [TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY) Represents the event of traversing the text of a view at a given movement granularity.                                                                                                                             |
| `int` | [TYPE_WINDOWS_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOWS_CHANGED) Represents the event change in the windows shown on the screen.                                                                                                                                                                                                            |
| `int` | [TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED) *This constant was deprecated in API level 26.1.0. Use[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_CONTENT_CHANGED)directly.*                                        |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static void`                                                                                                                                 | ` `[appendRecord](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#appendRecord(android.view.accessibility.AccessibilityEvent, android.support.v4.view.accessibility.AccessibilityRecordCompat))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event, `[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat)` record) ` *This method was deprecated in API level 26.1.0. Use[appendRecord(AccessibilityRecord)](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#appendRecord(android.view.accessibility.AccessibilityRecord))directly.* |
| ` static `[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat) | ` `[asRecord](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#asRecord(android.view.accessibility.AccessibilityEvent))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event) ` *This method was deprecated in API level 26.1.0. Use the[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)directly as[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html).*                                                                                                                                                                            |
| ` static int`                                                                                                                                  | ` `[getAction](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#getAction(android.view.accessibility.AccessibilityEvent))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event) ` Gets the performed action that triggered this event.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` static int`                                                                                                                                  | ` `[getContentChangeTypes](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#getContentChangeTypes(android.view.accessibility.AccessibilityEvent))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event) ` Gets the bit mask of change types signaled by an[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event.                                                                                                                                                                                                                                  |
| ` static int`                                                                                                                                  | ` `[getMovementGranularity](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#getMovementGranularity(android.view.accessibility.AccessibilityEvent))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event) ` Gets the movement granularity that was traversed.                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` static `[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat) | ` `[getRecord](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#getRecord(android.view.accessibility.AccessibilityEvent, int))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event, int index) ` *This method was deprecated in API level 26.1.0. Use[getRecord(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecord(int))directly.*                                                                                                                                                                                                                                                                        |
| ` static int`                                                                                                                                  | ` `[getRecordCount](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#getRecordCount(android.view.accessibility.AccessibilityEvent))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event) ` *This method was deprecated in API level 26.1.0. Use[getRecordCount()](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecordCount())directly.*                                                                                                                                                                                                                                                                          |
| ` static void`                                                                                                                                 | ` `[setAction](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#setAction(android.view.accessibility.AccessibilityEvent, int))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event, int action) ` Sets the performed action that triggered this event.                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` static void`                                                                                                                                 | ` `[setContentChangeTypes](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#setContentChangeTypes(android.view.accessibility.AccessibilityEvent, int))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event, int changeTypes) ` Sets the bit mask of node tree changes signaled by an[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event.                                                                                                                                                                                                       |
| ` static void`                                                                                                                                 | ` `[setMovementGranularity](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#setMovementGranularity(android.view.accessibility.AccessibilityEvent, int))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` event, int granularity) ` Sets the movement granularity that was traversed.                                                                                                                                                                                                                                                                                                                                                                                |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Constants

### CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION

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

```
int CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
```

Change type for[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event: The node's content description changed.

<br />

Constant Value: 4 (0x00000004)  

### CONTENT_CHANGE_TYPE_SUBTREE

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

```
int CONTENT_CHANGE_TYPE_SUBTREE
```

Change type for[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event: A node in the subtree rooted at the source node was added or removed.

<br />

Constant Value: 1 (0x00000001)  

### CONTENT_CHANGE_TYPE_TEXT

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

```
int CONTENT_CHANGE_TYPE_TEXT
```

Change type for[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event: The node's text changed.

<br />

Constant Value: 2 (0x00000002)  

### CONTENT_CHANGE_TYPE_UNDEFINED

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

```
int CONTENT_CHANGE_TYPE_UNDEFINED
```

Change type for[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event: The type of change is not defined.

<br />

Constant Value: 0 (0x00000000)  

### TYPES_ALL_MASK

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

```
int TYPES_ALL_MASK
```

Mask for[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)all types.

<br />

**See also:**

- [TYPE_VIEW_CLICKED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_CLICKED)
- [TYPE_VIEW_LONG_CLICKED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_LONG_CLICKED)
- [TYPE_VIEW_SELECTED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SELECTED)
- [TYPE_VIEW_FOCUSED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_FOCUSED)
- [TYPE_VIEW_TEXT_CHANGED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_CHANGED)
- [TYPE_WINDOW_STATE_CHANGED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED)
- [TYPE_NOTIFICATION_STATE_CHANGED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED)
- [TYPE_VIEW_HOVER_ENTER](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_ENTER)
- [TYPE_VIEW_HOVER_EXIT](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_HOVER_EXIT)
- [TYPE_TOUCH_EXPLORATION_GESTURE_START](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_START)
- [TYPE_TOUCH_EXPLORATION_GESTURE_END](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_TOUCH_EXPLORATION_GESTURE_END)
- [TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGED)
- [TYPE_VIEW_SCROLLED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_SCROLLED)
- [TYPE_VIEW_TEXT_SELECTION_CHANGED](https://developer.android.com/https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_VIEW_TEXT_SELECTION_CHANGED)
- [TYPE_ANNOUNCEMENT](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_ANNOUNCEMENT)
- [TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY)
- [TYPE_GESTURE_DETECTION_START](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_START)
- [TYPE_GESTURE_DETECTION_END](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_END)
- [TYPE_TOUCH_INTERACTION_START](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_START)
- [TYPE_TOUCH_INTERACTION_END](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_END)
- [TYPE_WINDOWS_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOWS_CHANGED)
- [TYPE_VIEW_CONTEXT_CLICKED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_CONTEXT_CLICKED)
- [TYPE_ASSIST_READING_CONTEXT](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_ASSIST_READING_CONTEXT)

Constant Value: -1 (0xffffffff)  

### TYPE_ANNOUNCEMENT

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

```
int TYPE_ANNOUNCEMENT
```

Represents the event of an application making an announcement.

<br />

Constant Value: 16384 (0x00004000)  

### TYPE_ASSIST_READING_CONTEXT

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

```
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[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int TYPE_GESTURE_DETECTION_END
```

Represents the event of ending gesture detection.

<br />

Constant Value: 524288 (0x00080000)  

### TYPE_GESTURE_DETECTION_START

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

```
int TYPE_GESTURE_DETECTION_START
```

Represents the event of beginning gesture detection.

<br />

Constant Value: 262144 (0x00040000)  

### TYPE_TOUCH_EXPLORATION_GESTURE_END

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

```
int TYPE_TOUCH_EXPLORATION_GESTURE_END
```

<br />

**This constant was deprecated in API level 26.1.0.**   
Use[TYPE_TOUCH_EXPLORATION_GESTURE_END](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_END)directly.

Represents the event of ending a touch exploration gesture.

<br />

Constant Value: 1024 (0x00000400)  

### TYPE_TOUCH_EXPLORATION_GESTURE_START

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

```
int TYPE_TOUCH_EXPLORATION_GESTURE_START
```

<br />

**This constant was deprecated in API level 26.1.0.**   
Use[TYPE_TOUCH_EXPLORATION_GESTURE_START](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_START)directly.

Represents the event of starting a touch exploration gesture.

<br />

Constant Value: 512 (0x00000200)  

### TYPE_TOUCH_INTERACTION_END

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

```
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[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
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[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int TYPE_VIEW_ACCESSIBILITY_FOCUSED
```

Represents the event of gaining accessibility focus.

<br />

Constant Value: 32768 (0x00008000)  

### TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED

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

```
int TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
```

Represents the event of clearing accessibility focus.

<br />

Constant Value: 65536 (0x00010000)  

### TYPE_VIEW_CONTEXT_CLICKED

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

```
int TYPE_VIEW_CONTEXT_CLICKED
```

Represents the event of a context click on a[View](https://developer.android.com/reference/android/view/View.html).

<br />

Constant Value: 8388608 (0x00800000)  

### TYPE_VIEW_HOVER_ENTER

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

```
int TYPE_VIEW_HOVER_ENTER
```

<br />

**This constant was deprecated in API level 26.1.0.**   
Use[TYPE_VIEW_HOVER_ENTER](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_ENTER)directly.

Represents the event of a hover enter over a[View](https://developer.android.com/reference/android/view/View.html).

<br />

Constant Value: 128 (0x00000080)  

### TYPE_VIEW_HOVER_EXIT

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

```
int TYPE_VIEW_HOVER_EXIT
```

<br />

**This constant was deprecated in API level 26.1.0.**   
Use[TYPE_VIEW_HOVER_EXIT](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_EXIT)directly.

Represents the event of a hover exit over a[View](https://developer.android.com/reference/android/view/View.html).

<br />

Constant Value: 256 (0x00000100)  

### TYPE_VIEW_SCROLLED

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

```
int TYPE_VIEW_SCROLLED
```

<br />

**This constant was deprecated in API level 26.1.0.**   
Use[TYPE_VIEW_SCROLLED](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_SCROLLED)directly.

Represents the event of scrolling a view.

<br />

Constant Value: 4096 (0x00001000)  

### TYPE_VIEW_TEXT_SELECTION_CHANGED

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

```
int TYPE_VIEW_TEXT_SELECTION_CHANGED
```

<br />

**This constant was deprecated in API level 26.1.0.**   
Use[TYPE_VIEW_TEXT_SELECTION_CHANGED](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_TEXT_SELECTION_CHANGED)directly.

Represents the event of changing the selection in an[EditText](https://developer.android.com/reference/android/widget/EditText.html).

<br />

Constant Value: 8192 (0x00002000)  

### TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY

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

```
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[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int TYPE_WINDOWS_CHANGED
```

Represents the event change in the windows shown on the screen.

<br />

Constant Value: 4194304 (0x00400000)  

### TYPE_WINDOW_CONTENT_CHANGED

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

```
int TYPE_WINDOW_CONTENT_CHANGED
```

<br />

**This constant was deprecated in API level 26.1.0.**   
Use[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_CONTENT_CHANGED)directly.

Represents the event of changing the content of a window.

<br />

Constant Value: 2048 (0x00000800)

## Public methods

### appendRecord

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

```
void appendRecord (AccessibilityEvent event, 
                AccessibilityRecordCompat record)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[appendRecord(AccessibilityRecord)](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#appendRecord(android.view.accessibility.AccessibilityRecord))directly.

Appends an[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)to the end of event records.

<br />

|                             Parameters                              ||
|----------|-----------------------------------------------------------|
| `event`  | `AccessibilityEvent` <br />                               |
| `record` | `AccessibilityRecordCompat`: The record to append. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### asRecord

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

```
AccessibilityRecordCompat asRecord (AccessibilityEvent event)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use the[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)directly as[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html).

Creates an[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat)from an[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)that can be used to manipulate the event properties defined in[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html).

**Note:** Do not call[recycle()](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#recycle())on the returned[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat). Call[recycle()](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#recycle())in case you want to recycle the event.

<br />

<br />

|                                Parameters                                ||
|---------|-----------------------------------------------------------------|
| `event` | `AccessibilityEvent`: The from which to create a record. <br /> |

|                                                                                                                                       Returns                                                                                                                                        ||
|--------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
| [AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat) | An[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat). <br /> |

### getAction

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

```
int getAction (AccessibilityEvent event)
```

Gets the performed action that triggered this event.

<br />

|              Parameters              ||
|---------|-----------------------------|
| `event` | `AccessibilityEvent` <br /> |

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

### getContentChangeTypes

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

```
int getContentChangeTypes (AccessibilityEvent event)
```

Gets the bit mask of change types signaled by an[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event. A single event may represent multiple change types.

<br />

|              Parameters              ||
|---------|-----------------------------|
| `event` | `AccessibilityEvent` <br /> |

|                                                                                                                                                                                                                                                                                                                                                      Returns                                                                                                                                                                                                                                                                                                                                                      ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The bit mask of change types. One or more of: - [CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION) - [CONTENT_CHANGE_TYPE_SUBTREE](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_SUBTREE) - [CONTENT_CHANGE_TYPE_TEXT](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_TEXT) - [CONTENT_CHANGE_TYPE_UNDEFINED](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_UNDEFINED) <br /> |

### getMovementGranularity

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

```
int getMovementGranularity (AccessibilityEvent event)
```

Gets the movement granularity that was traversed.

<br />

|              Parameters              ||
|---------|-----------------------------|
| `event` | `AccessibilityEvent` <br /> |

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

### getRecord

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

```
AccessibilityRecordCompat getRecord (AccessibilityEvent event, 
                int index)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getRecord(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecord(int))directly.

Gets the record at a given index.

<br />

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

|                                                                                     Returns                                                                                     ||
|--------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| [AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat) | The record at the specified index. <br /> |

### getRecordCount

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

```
int getRecordCount (AccessibilityEvent event)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getRecordCount()](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecordCount())directly.

Gets the number of records contained in the event.

<br />

|              Parameters              ||
|---------|-----------------------------|
| `event` | `AccessibilityEvent` <br /> |

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

### setAction

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

```
void setAction (AccessibilityEvent event, 
                int action)
```

Sets the performed action that triggered this event.

Valid actions are defined in[AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat):

- [ACTION_ACCESSIBILITY_FOCUS](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ACCESSIBILITY_FOCUS)
- [ACTION_CLEAR_ACCESSIBILITY_FOCUS](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_ACCESSIBILITY_FOCUS)
- [ACTION_CLEAR_FOCUS](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_FOCUS)
- [ACTION_CLEAR_SELECTION](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_SELECTION)
- [ACTION_CLICK](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLICK)
- etc.

<br />

<br />

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

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

**See also:**

- [performAction(int)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat#performAction(int))  

### setContentChangeTypes

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

```
void setContentChangeTypes (AccessibilityEvent event, 
                int changeTypes)
```

Sets the bit mask of node tree changes signaled by an[TYPE_WINDOW_CONTENT_CHANGED](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED)event.

<br />

|                         Parameters                         ||
|---------------|---------------------------------------------|
| `event`       | `AccessibilityEvent` <br />                 |
| `changeTypes` | `int`: The bit mask of change types. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

**See also:**

- [getContentChangeTypes(AccessibilityEvent)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#getContentChangeTypes(android.view.accessibility.AccessibilityEvent))  

### setMovementGranularity

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

```
void setMovementGranularity (AccessibilityEvent event, 
                int granularity)
```

Sets the movement granularity that was traversed.

<br />

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

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

-

  ## Interfaces

  - [AccessibilityManagerCompat.AccessibilityStateChangeListener](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListener)
  - [AccessibilityManagerCompat.TouchExplorationStateChangeListener](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.TouchExplorationStateChangeListener)
-

  ## Classes

  - [AccessibilityEventCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat)
  - [AccessibilityManagerCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat)
  - [AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat)
  - [AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat)
  - [AccessibilityNodeInfoCompat.AccessibilityActionCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat)
  - [AccessibilityNodeInfoCompat.CollectionInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.CollectionInfoCompat)
  - [AccessibilityNodeInfoCompat.CollectionItemInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat)
  - [AccessibilityNodeInfoCompat.RangeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.RangeInfoCompat)
  - [AccessibilityNodeProviderCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeProviderCompat)
  - [AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat)
  - [AccessibilityWindowInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityWindowInfoCompat)