# AccessibilityEventCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/view/accessibility/AccessibilityEventCompat.java+class:androidx.core.view.accessibility.AccessibilityEventCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
public final class AccessibilityEventCompat
```

<br />

*** ** * ** ***

Helper for accessing features in `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html`.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_CHECKED() = 8192` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The source node changed its checked state, which is returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION() = 4` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The node's content description changed. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_CONTENT_INVALID() = 1024` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The source node changed its content validity returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isContentInvalid()`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_DRAG_CANCELLED() = 512` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: A drag in with accessibility enabled has ended. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_DRAG_DROPPED() = 256` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: A drag in with accessibility enabled has ended. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_DRAG_STARTED() = 128` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: A drag has started while accessibility is enabled. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_ENABLED() = 4096` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The source node changed its ability to interact returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isEnabled()`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_ERROR() = 2048` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The source node changed its erroneous content's error message returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getError()`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_EXPANDED() = 16384` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The source node changed its expanded state which is returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_PANE_APPEARED() = 16` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#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. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_PANE_DISAPPEARED() = 32` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_STATE_CHANGED` event: Can mean one of two slightly different things. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_PANE_TITLE() = 8` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_STATE_CHANGED` event: The node's pane title changed. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_SORT_DIRECTION() = 65536` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#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/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat#getSortDirection()`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_STATE_DESCRIPTION() = 64` Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_CONTENT_CHANGED` event: state description of the node as returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getStateDescription()` was changed. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_SUBTREE() = 1` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: A node in the subtree rooted at the source node was added or removed. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION() = 32768` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The source node changed its supplemental description, which is returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getSupplementalDescription()`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_TEXT() = 2` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The node's text changed. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_UNDEFINED() = 0` Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The type of change is not defined. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPES_ALL_MASK() = -1` Mask for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` all types. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_ANNOUNCEMENT() = 16384` Represents the event of an application making an announcement. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_ASSIST_READING_CONTEXT() = 16777216` Represents the event of the assistant currently reading the users screen context. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_END() = 524288` Represents the event of ending gesture detection. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_START() = 262144` Represents the event of beginning gesture detection. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_EXPLORATION_GESTURE_END() = 1024` **This field is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_END` directly. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_EXPLORATION_GESTURE_START() = 512` **This field is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_START` directly. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_END() = 2097152` Represents the event of the user ending to touch the screen. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_START() = 1048576` Represents the event of the user starting to touch the screen. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_ACCESSIBILITY_FOCUSED() = 32768` Represents the event of gaining accessibility focus. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED() = 65536` Represents the event of clearing accessibility focus. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_CONTEXT_CLICKED() = 8388608` Represents the event of a context click on a `https://developer.android.com/reference/android/view/View.html`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_HOVER_ENTER() = 128` **This field is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_ENTER` directly. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_HOVER_EXIT() = 256` **This field is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_EXIT` directly. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_SCROLLED() = 4096` **This field is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_SCROLLED` directly. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TARGETED_BY_SCROLL() = 67108864` Represents the event of a scroll having completed and brought the target node on screen. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TEXT_SELECTION_CHANGED() = 8192` **This field is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_TEXT_SELECTION_CHANGED` directly. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY() = 131072` Represents the event of traversing the text of a view at a given movement granularity. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOWS_CHANGED() = 4194304` Represents the event change in the windows shown on the screen. |
| `static final int` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED() = 2048` **This field is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_CONTENT_CHANGED` directly. <br /> |

| ### Public methods |
|---|---|
| `static void` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "event.appendRecord(record)") [appendRecord](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#appendRecord(android.view.accessibility.AccessibilityEvent,androidx.core.view.accessibility.AccessibilityRecordCompat))( https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event, https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat record )` **This method is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#appendRecord(android.view.accessibility.AccessibilityRecord)` directly. <br /> |
| `static https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat` | `[asRecord](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#asRecord(android.view.accessibility.AccessibilityEvent))(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` **This method is deprecated.** Use the `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` directly as `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html`. <br /> |
| `static int` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "event.getAction()") [getAction](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getAction(android.view.accessibility.AccessibilityEvent))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` **This method is deprecated.** Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getAction()` directly. <br /> |
| `static int` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "event.getContentChangeTypes()") [getContentChangeTypes](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getContentChangeTypes(android.view.accessibility.AccessibilityEvent))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` **This method is deprecated.** Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getContentChangeTypes()` directly. <br /> |
| `static int` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "event.getMovementGranularity()") [getMovementGranularity](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getMovementGranularity(android.view.accessibility.AccessibilityEvent))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` **This method is deprecated.** Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getMovementGranularity()` directly. <br /> |
| `static https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat` | `[getRecord](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getRecord(android.view.accessibility.AccessibilityEvent,int))(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event, int index)` **This method is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecord(int)` directly. <br /> |
| `static int` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "event.getRecordCount()") [getRecordCount](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getRecordCount(android.view.accessibility.AccessibilityEvent))(https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` **This method is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecordCount()` directly. <br /> |
| `static boolean` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#isAccessibilityDataSensitive(android.view.accessibility.AccessibilityEvent)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event)` Whether the event should only be delivered to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html` with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo.html#isAccessibilityTool()` property set to true. |
| `static void` | `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#setAccessibilityDataSensitive(android.view.accessibility.AccessibilityEvent,boolean)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event, boolean accessibilityDataSensitive )` Sets whether the event should only be delivered to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html` with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo.html#isAccessibilityTool()` property set to true. |
| `static void` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "event.setAction(action)") [setAction](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#setAction(android.view.accessibility.AccessibilityEvent,int))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event, int action)` **This method is deprecated.** Call setAction directly. <br /> |
| `static void` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "event.setContentChangeTypes(changeTypes)") [setContentChangeTypes](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#setContentChangeTypes(android.view.accessibility.AccessibilityEvent,int))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event, int changeTypes)` **This method is deprecated.** Call setContentChangeTypes directly. <br /> |
| `static void` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "event.setMovementGranularity(granularity)") [setMovementGranularity](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#setMovementGranularity(android.view.accessibility.AccessibilityEvent,int))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event, int granularity )` **This method is deprecated.** Call setMovementGranularity directly. <br /> |

## Constants

### CONTENT_CHANGE_TYPE_CHECKED

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int CONTENT_CHANGE_TYPE_CHECKED = 8192
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)` |   |

### CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION = 4
```

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

### CONTENT_CHANGE_TYPE_CONTENT_INVALID

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int CONTENT_CHANGE_TYPE_CONTENT_INVALID = 1024
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isContentInvalid()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setContentInvalid(boolean)` |   |

### CONTENT_CHANGE_TYPE_DRAG_CANCELLED

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public static final int CONTENT_CHANGE_TYPE_DRAG_CANCELLED = 512
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_DRAG_CANCEL()` |   |

### CONTENT_CHANGE_TYPE_DRAG_DROPPED

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public static final int CONTENT_CHANGE_TYPE_DRAG_DROPPED = 256
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_DRAG_DROP()` |   |

### CONTENT_CHANGE_TYPE_DRAG_STARTED

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public static final int CONTENT_CHANGE_TYPE_DRAG_STARTED = 128
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_DRAG_START()` |   |

### CONTENT_CHANGE_TYPE_ENABLED

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int CONTENT_CHANGE_TYPE_ENABLED = 4096
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isEnabled()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setEnabled(boolean)` |   |

### CONTENT_CHANGE_TYPE_ERROR

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int CONTENT_CHANGE_TYPE_ERROR = 2048
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getError()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setError(java.lang.CharSequence)` |   |

### CONTENT_CHANGE_TYPE_EXPANDED

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int CONTENT_CHANGE_TYPE_EXPANDED = 16384
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setExpandedState(int)` |   |

### CONTENT_CHANGE_TYPE_PANE_APPEARED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int CONTENT_CHANGE_TYPE_PANE_APPEARED = 16
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/ViewCompat#setAccessibilityPaneTitle(android.view.View,java.lang.CharSequence)` |   |

### CONTENT_CHANGE_TYPE_PANE_DISAPPEARED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int CONTENT_CHANGE_TYPE_PANE_DISAPPEARED = 32
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/ViewCompat#setAccessibilityPaneTitle(android.view.View,java.lang.CharSequence)` |   |

### CONTENT_CHANGE_TYPE_PANE_TITLE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int CONTENT_CHANGE_TYPE_PANE_TITLE = 8
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/ViewCompat#setAccessibilityPaneTitle(android.view.View,java.lang.CharSequence)` |   |

### CONTENT_CHANGE_TYPE_SORT_DIRECTION

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int CONTENT_CHANGE_TYPE_SORT_DIRECTION = 65536
```

Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#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/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat#getSortDirection()`. The view changing its collection item info's sort direction should set a `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat` created with `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat.Builder#setSortDirection(int)` and then send this event.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat#getSortDirection()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat.Builder#setSortDirection(int)` |   |

### CONTENT_CHANGE_TYPE_STATE_DESCRIPTION

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final int CONTENT_CHANGE_TYPE_STATE_DESCRIPTION = 64
```

Change type for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_CONTENT_CHANGED` event: state description of the node as returned by `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getStateDescription()` was changed.

### CONTENT_CHANGE_TYPE_SUBTREE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int CONTENT_CHANGE_TYPE_SUBTREE = 1
```

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

### CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0)

```
public static final int CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION = 32768
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getSupplementalDescription()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSupplementalDescription(java.lang.CharSequence)` |   |

### CONTENT_CHANGE_TYPE_TEXT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int CONTENT_CHANGE_TYPE_TEXT = 2
```

Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The node's text changed.

### CONTENT_CHANGE_TYPE_UNDEFINED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int CONTENT_CHANGE_TYPE_UNDEFINED = 0
```

Change type for `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The type of change is not defined.

### TYPES_ALL_MASK

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPES_ALL_MASK = -1
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_CLICKED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_LONG_CLICKED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_SELECTED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_FOCUSED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_TEXT_CHANGED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_STATE_CHANGED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_NOTIFICATION_STATE_CHANGED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_ENTER` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_EXIT` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_START` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_END` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_CONTENT_CHANGED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_SCROLLED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_TEXT_SELECTION_CHANGED` |   |
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_TARGETED_BY_SCROLL` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_ANNOUNCEMENT()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_START()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_END()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_START()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_END()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOWS_CHANGED()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_CONTEXT_CLICKED()` |   |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_ASSIST_READING_CONTEXT()` |   |

### TYPE_ANNOUNCEMENT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_ANNOUNCEMENT = 16384
```

Represents the event of an application making an announcement.

Note: This event carries no semantic meaning and is appropriate only in exceptional situations. Apps can generally achieve correct behavior for accessibility by accurately supplying the semantics of their UI. They should not need to specify what exactly is announced to users.

In general, only announce transitions that can't be handled by the following preferred alternatives:

- Label your controls concisely and precisely. Don't generate a confirmation message for simple actions like a button press.
- For significant UI changes like window changes, use `https://developer.android.com/reference/android/app/Activity.html#setTitle(java.lang.CharSequence)` and `https://developer.android.com/reference/androidx/core/view/ViewCompat#setAccessibilityPaneTitle(android.view.View,java.lang.CharSequence)` )}.
- Use `https://developer.android.com/reference/androidx/core/view/ViewCompat#setAccessibilityLiveRegion(android.view.View,int)` to inform the user of changes to critical views within the user interface. These should still be used sparingly as they may generate announcements every time a View is updated.

### TYPE_ASSIST_READING_CONTEXT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_ASSIST_READING_CONTEXT = 16777216
```

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

### TYPE_GESTURE_DETECTION_END

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_GESTURE_DETECTION_END = 524288
```

Represents the event of ending gesture detection.

### TYPE_GESTURE_DETECTION_START

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_GESTURE_DETECTION_START = 262144
```

Represents the event of beginning gesture detection.

### TYPE_TOUCH_EXPLORATION_GESTURE_END

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_TOUCH_EXPLORATION_GESTURE_END = 1024
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `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.

### TYPE_TOUCH_EXPLORATION_GESTURE_START

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_TOUCH_EXPLORATION_GESTURE_START = 512
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `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.

### TYPE_TOUCH_INTERACTION_END

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_TOUCH_INTERACTION_END = 2097152
```

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

### TYPE_TOUCH_INTERACTION_START

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_TOUCH_INTERACTION_START = 1048576
```

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

### TYPE_VIEW_ACCESSIBILITY_FOCUSED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_VIEW_ACCESSIBILITY_FOCUSED = 32768
```

Represents the event of gaining accessibility focus.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_ACCESSIBILITY_FOCUS()` |   |

### TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED = 65536
```

Represents the event of clearing accessibility focus.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat#ACTION_CLEAR_ACCESSIBILITY_FOCUS()` |   |

### TYPE_VIEW_CONTEXT_CLICKED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_VIEW_CONTEXT_CLICKED = 8388608
```

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

### TYPE_VIEW_HOVER_ENTER

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_VIEW_HOVER_ENTER = 128
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_ENTER` directly.

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

### TYPE_VIEW_HOVER_EXIT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_VIEW_HOVER_EXIT = 256
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_EXIT` directly.

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

### TYPE_VIEW_SCROLLED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_VIEW_SCROLLED = 4096
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_SCROLLED` directly.

Represents the event of scrolling a view.

### TYPE_VIEW_TARGETED_BY_SCROLL

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final int TYPE_VIEW_TARGETED_BY_SCROLL = 67108864
```

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

### TYPE_VIEW_TEXT_SELECTION_CHANGED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_VIEW_TEXT_SELECTION_CHANGED = 8192
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `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 `https://developer.android.com/reference/android/widget/EditText.html`.

### TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 131072
```

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

### TYPE_WINDOWS_CHANGED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_WINDOWS_CHANGED = 4194304
```

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

### TYPE_WINDOW_CONTENT_CHANGED

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int TYPE_WINDOW_CONTENT_CHANGED = 2048
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `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.

## Public methods

### appendRecord

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "event.appendRecord(record)")
public static void [appendRecord](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#appendRecord(android.view.accessibility.AccessibilityEvent,androidx.core.view.accessibility.AccessibilityRecordCompat))(
    AccessibilityEvent event,
    AccessibilityRecordCompat record
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#appendRecord(android.view.accessibility.AccessibilityRecord)` directly.

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

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event` | event for which to append the record. |
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat record` | The record to append. |

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

### asRecord

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static AccessibilityRecordCompat [asRecord](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#asRecord(android.view.accessibility.AccessibilityEvent))(AccessibilityEvent event)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use the `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` directly as `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html`.

Creates an `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat` from an `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` that can be used to manipulate the event properties defined in `https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html`.

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

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event` | The from which to create a record. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat` | An `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat`. |

### getAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)

```
@ReplaceWith(expression = "event.getAction()")
public static int [getAction](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getAction(android.view.accessibility.AccessibilityEvent))(@NonNull AccessibilityEvent event)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getAction()` directly.

Gets the performed action that triggered this event.

| Returns |
|---|---|
| `int` | The action. |

### getContentChangeTypes

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)

```
@ReplaceWith(expression = "event.getContentChangeTypes()")
public static int [getContentChangeTypes](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getContentChangeTypes(android.view.accessibility.AccessibilityEvent))(@NonNull AccessibilityEvent event)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getContentChangeTypes()` directly.

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

| Returns |
|---|---|
| `int` | The bit mask of change types. One or more of: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_STATE_DESCRIPTION` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_SUBTREE` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_TEXT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#CONTENT_CHANGE_TYPE_UNDEFINED` |

### getMovementGranularity

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)

```
@ReplaceWith(expression = "event.getMovementGranularity()")
public static int [getMovementGranularity](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getMovementGranularity(android.view.accessibility.AccessibilityEvent))(@NonNull AccessibilityEvent event)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getMovementGranularity()` directly.

Gets the movement granularity that was traversed.

| Returns |
|---|---|
| `int` | The granularity. |

### getRecord

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static AccessibilityRecordCompat [getRecord](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getRecord(android.view.accessibility.AccessibilityEvent,int))(AccessibilityEvent event, int index)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecord(int)` directly.

Gets the record at a given index.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event` | event for which to get the record. |
| `int index` | The index. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat` | The record at the specified index. |

### getRecordCount

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ReplaceWith(expression = "event.getRecordCount()")
public static int [getRecordCount](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getRecordCount(android.view.accessibility.AccessibilityEvent))(AccessibilityEvent event)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecordCount()` directly.

Gets the number of records contained in the event.

| Returns |
|---|---|
| `int` | The number of records. |

### isAccessibilityDataSensitive

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static boolean isAccessibilityDataSensitive(@NonNull AccessibilityEvent event)
```

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

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

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#setAccessibilityDataSensitive(android.view.accessibility.AccessibilityEvent,boolean)` |   |

### setAccessibilityDataSensitive

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static void setAccessibilityDataSensitive(
    @NonNull AccessibilityEvent event,
    boolean accessibilityDataSensitive
)
```

Sets whether the event should only be delivered to an `https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html` with the `https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo.html#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.html` (where an event may have no source) then this method must be called explicitly if you want non-default behavior.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event` | The event to update. |
| `boolean accessibilityDataSensitive` | True if the event should be delivered only to isAccessibilityTool services, false otherwise. |

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

### setAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)

```
@ReplaceWith(expression = "event.setAction(action)")
public static void [setAction](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#setAction(android.view.accessibility.AccessibilityEvent,int))(@NonNull AccessibilityEvent event, int action)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Call setAction directly.

Sets the performed action that triggered this event.

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

- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_ACCESSIBILITY_FOCUS()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_ACCESSIBILITY_FOCUS()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_FOCUS()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLEAR_SELECTION()`
- `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#ACTION_CLICK()`
- etc.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event` | event for which to set the action. |
| `int action` | The action. |

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#performAction(int)` |   |

### setContentChangeTypes

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)

```
@ReplaceWith(expression = "event.setContentChangeTypes(changeTypes)")
public static void [setContentChangeTypes](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#setContentChangeTypes(android.view.accessibility.AccessibilityEvent,int))(@NonNull AccessibilityEvent event, int changeTypes)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Call setContentChangeTypes directly.

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

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event` | event for which to set the types. |
| `int changeTypes` | The bit mask of change types. |

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

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#getContentChangeTypes(android.view.accessibility.AccessibilityEvent)` |   |

### setMovementGranularity

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)

```
@ReplaceWith(expression = "event.setMovementGranularity(granularity)")
public static void [setMovementGranularity](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat#setMovementGranularity(android.view.accessibility.AccessibilityEvent,int))(
    @NonNull AccessibilityEvent event,
    int granularity
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Call setMovementGranularity directly.

Sets the movement granularity that was traversed.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html event` | event for which to set the granularity. |
| `int granularity` | The granularity. |

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