# 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)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityEventCompat "View this page in Java")


```
class AccessibilityEventCompat
```

<br />

*** ** * ** ***

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

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_CHECKED() = 8192` Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION() = 4` Change type for `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The node's content description changed. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_CONTENT_INVALID() = 1024` Change type for `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The source node changed its content validity returned by `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isContentInvalid()`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_DRAG_CANCELLED() = 512` Change type for `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: A drag in with accessibility enabled has ended. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_DRAG_DROPPED() = 256` Change type for `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: A drag in with accessibility enabled has ended. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_DRAG_STARTED() = 128` Change type for `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: A drag has started while accessibility is enabled. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_ENABLED() = 4096` Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isEnabled()`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_ERROR() = 2048` Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getError()`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_EXPANDED() = 16384` Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/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. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/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. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/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. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_SORT_DIRECTION() = 65536` Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat#getSortDirection()`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getStateDescription()` was changed. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_SUBTREE() = 1` Change type for `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: A node in the subtree rooted at the source node was added or removed. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION() = 32768` Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getSupplementalDescription()`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_TEXT() = 2` Change type for `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The node's text changed. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#CONTENT_CHANGE_TYPE_UNDEFINED() = 0` Change type for `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event: The type of change is not defined. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPES_ALL_MASK() = -1` Mask for `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` all types. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_ANNOUNCEMENT() = 16384` Represents the event of an application making an announcement. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_ASSIST_READING_CONTEXT() = 16777216` Represents the event of the assistant currently reading the users screen context. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_END() = 524288` Represents the event of ending gesture detection. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_START() = 262144` Represents the event of beginning gesture detection. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_EXPLORATION_GESTURE_END() = 1024` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_END` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_EXPLORATION_GESTURE_START() = 512` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_TOUCH_EXPLORATION_GESTURE_START` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_END() = 2097152` Represents the event of the user ending to touch the screen. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_START() = 1048576` Represents the event of the user starting to touch the screen. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_ACCESSIBILITY_FOCUSED() = 32768` Represents the event of gaining accessibility focus. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED() = 65536` Represents the event of clearing accessibility focus. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/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`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_HOVER_ENTER() = 128` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_ENTER` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_HOVER_EXIT() = 256` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_HOVER_EXIT` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_SCROLLED() = 4096` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_SCROLLED` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/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. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TEXT_SELECTION_CHANGED() = 8192` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_VIEW_TEXT_SELECTION_CHANGED` directly. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/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. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOWS_CHANGED() = 4194304` Represents the event change in the windows shown on the screen. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED() = 2048` **This property is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#TYPE_WINDOW_CONTENT_CHANGED` directly. <br /> |

| ### Public functions |
|---|---|
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "event.appendRecord(record)") [appendRecord](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#appendRecord(android.view.accessibility.AccessibilityEvent,androidx.core.view.accessibility.AccessibilityRecordCompat))( event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!, record: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat! )` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#appendRecord(android.view.accessibility.AccessibilityRecord)` directly. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat!` | `[asRecord](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#asRecord(android.view.accessibility.AccessibilityEvent))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!)` **This function 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 /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "event.getAction()") [getAction](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getAction(android.view.accessibility.AccessibilityEvent))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getAction()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "event.getContentChangeTypes()") [getContentChangeTypes](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getContentChangeTypes(android.view.accessibility.AccessibilityEvent))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getContentChangeTypes()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "event.getMovementGranularity()") [getMovementGranularity](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getMovementGranularity(android.view.accessibility.AccessibilityEvent))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` **This function is deprecated.** Call `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getMovementGranularity()` directly. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat!` | `[getRecord](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getRecord(android.view.accessibility.AccessibilityEvent,int))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!, index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecord(int)` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "event.getRecordCount()") [getRecordCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getRecordCount(android.view.accessibility.AccessibilityEvent))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html#getRecordCount()` directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#isAccessibilityDataSensitive(android.view.accessibility.AccessibilityEvent)(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` 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. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#setAccessibilityDataSensitive(android.view.accessibility.AccessibilityEvent,boolean)( event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html, accessibilityDataSensitive: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` 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. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "event.setAction(action)") [setAction](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#setAction(android.view.accessibility.AccessibilityEvent,int))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html, action: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Call setAction directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "event.setContentChangeTypes(changeTypes)") [setContentChangeTypes](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#setContentChangeTypes(android.view.accessibility.AccessibilityEvent,int))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html, changeTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Call setContentChangeTypes directly. <br /> |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith(expression = "event.setMovementGranularity(granularity)") [setMovementGranularity](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#setMovementGranularity(android.view.accessibility.AccessibilityEvent,int))(event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html, granularity: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function 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)

```
const val CONTENT_CHANGE_TYPE_CHECKED = 8192: Int
```

Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()`. The view changing its checked state should call `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setChecked(int)` and then send this event.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getChecked()` |   |
| `https://developer.android.com/reference/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION = 4: Int
```

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

```
const val CONTENT_CHANGE_TYPE_CONTENT_INVALID = 1024: Int
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isContentInvalid()` |   |
| `https://developer.android.com/reference/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_DRAG_CANCELLED = 512: Int
```

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

```
const val CONTENT_CHANGE_TYPE_DRAG_DROPPED = 256: Int
```

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

```
const val CONTENT_CHANGE_TYPE_DRAG_STARTED = 128: Int
```

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

```
const val CONTENT_CHANGE_TYPE_ENABLED = 4096: Int
```

Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isEnabled()`. The view changing content's ability to interact should call `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setEnabled(boolean)` and then send this event.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#isEnabled()` |   |
| `https://developer.android.com/reference/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_ERROR = 2048: Int
```

Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getError()`. The view changing erroneous content's error message should call `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setError(java.lang.CharSequence)` and then send this event.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getError()` |   |
| `https://developer.android.com/reference/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_EXPANDED = 16384: Int
```

Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()`. The view changing the node's expanded state should call `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setExpandedState(int)` and then send this event.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getExpandedState()` |   |
| `https://developer.android.com/reference/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_PANE_APPEARED = 16: Int
```

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/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_PANE_DISAPPEARED = 32: Int
```

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/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_PANE_TITLE = 8: Int
```

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/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_SORT_DIRECTION = 65536: Int
```

Change type for `https://developer.android.com/reference/kotlin/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/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat` created with `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat.Builder#setSortDirection(int)` and then send this event.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat#getSortDirection()` |   |
| `https://developer.android.com/reference/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_STATE_DESCRIPTION = 64: Int
```

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/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_SUBTREE = 1: Int
```

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

```
const val CONTENT_CHANGE_TYPE_SUPPLEMENTAL_DESCRIPTION = 32768: Int
```

Change type for `https://developer.android.com/reference/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getSupplementalDescription()`. The view changing its supplemental description should call `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#setSupplementalDescription(java.lang.CharSequence)` and then send this event.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getSupplementalDescription()` |   |
| `https://developer.android.com/reference/kotlin/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)

```
const val CONTENT_CHANGE_TYPE_TEXT = 2: Int
```

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

```
const val CONTENT_CHANGE_TYPE_UNDEFINED = 0: Int
```

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

```
const val TYPES_ALL_MASK = -1: Int
```

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/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_ANNOUNCEMENT()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_START()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_GESTURE_DETECTION_END()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_START()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_TOUCH_INTERACTION_END()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOWS_CHANGED()` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_VIEW_CONTEXT_CLICKED()` |   |
| `https://developer.android.com/reference/kotlin/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)

```
const val TYPE_ANNOUNCEMENT = 16384: Int
```

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/kotlin/androidx/core/view/ViewCompat#setAccessibilityPaneTitle(android.view.View,java.lang.CharSequence)` )}.
- Use `https://developer.android.com/reference/kotlin/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)

```
const val TYPE_ASSIST_READING_CONTEXT = 16777216: Int
```

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)

```
const val TYPE_GESTURE_DETECTION_END = 524288: Int
```

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)

```
const val TYPE_GESTURE_DETECTION_START = 262144: Int
```

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)

```
const val TYPE_TOUCH_EXPLORATION_GESTURE_END = 1024: Int
```

> [!CAUTION]
> **This property 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)

```
const val TYPE_TOUCH_EXPLORATION_GESTURE_START = 512: Int
```

> [!CAUTION]
> **This property 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)

```
const val TYPE_TOUCH_INTERACTION_END = 2097152: Int
```

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)

```
const val TYPE_TOUCH_INTERACTION_START = 1048576: Int
```

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)

```
const val TYPE_VIEW_ACCESSIBILITY_FOCUSED = 32768: Int
```

Represents the event of gaining accessibility focus.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/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)

```
const val TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED = 65536: Int
```

Represents the event of clearing accessibility focus.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/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)

```
const val TYPE_VIEW_CONTEXT_CLICKED = 8388608: Int
```

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)

```
const val TYPE_VIEW_HOVER_ENTER = 128: Int
```

> [!CAUTION]
> **This property 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)

```
const val TYPE_VIEW_HOVER_EXIT = 256: Int
```

> [!CAUTION]
> **This property 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)

```
const val TYPE_VIEW_SCROLLED = 4096: Int
```

> [!CAUTION]
> **This property 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)

```
const val TYPE_VIEW_TARGETED_BY_SCROLL = 67108864: Int
```

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)

```
const val TYPE_VIEW_TEXT_SELECTION_CHANGED = 8192: Int
```

> [!CAUTION]
> **This property 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)

```
const val TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 131072: Int
```

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)

```
const val TYPE_WINDOWS_CHANGED = 4194304: Int
```

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)

```
const val TYPE_WINDOW_CONTENT_CHANGED = 2048: Int
```

> [!CAUTION]
> **This property 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 functions

### 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)")
java-static fun [appendRecord](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#appendRecord(android.view.accessibility.AccessibilityEvent,androidx.core.view.accessibility.AccessibilityRecordCompat))(
    event: AccessibilityEvent!,
    record: AccessibilityRecordCompat!
): Unit
```

> [!CAUTION]
> **This function 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 |
|---|---|
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!` | event for which to append the record. |
| `record: https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat!` | 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)

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

> [!CAUTION]
> **This function 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/kotlin/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/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#recycle()` on the returned `https://developer.android.com/reference/kotlin/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 |
|---|---|
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!` | The from which to create a record. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat!` | An `https://developer.android.com/reference/kotlin/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()")
java-static fun [getAction](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getAction(android.view.accessibility.AccessibilityEvent))(event: AccessibilityEvent): Int
```

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

Gets the performed action that triggered this event.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | 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()")
java-static fun [getContentChangeTypes](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getContentChangeTypes(android.view.accessibility.AccessibilityEvent))(event: AccessibilityEvent): Int
```

> [!CAUTION]
> **This function 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/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#TYPE_WINDOW_CONTENT_CHANGED()` event. A single event may represent multiple change types.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | 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()")
java-static fun [getMovementGranularity](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getMovementGranularity(android.view.accessibility.AccessibilityEvent))(event: AccessibilityEvent): Int
```

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

Gets the movement granularity that was traversed.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | 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)

```
java-static fun [getRecord](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getRecord(android.view.accessibility.AccessibilityEvent,int))(event: AccessibilityEvent!, index: Int): AccessibilityRecordCompat!
```

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

Gets the record at a given index.

| Parameters |
|---|---|
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html!` | event for which to get the record. |
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/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()")
java-static fun [getRecordCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#getRecordCount(android.view.accessibility.AccessibilityEvent))(event: AccessibilityEvent!): Int
```

> [!CAUTION]
> **This function 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 |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The number of records. |

### isAccessibilityDataSensitive

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

```
java-static fun isAccessibilityDataSensitive(event: AccessibilityEvent): Boolean
```

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 |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if the event should be delivered only to isAccessibilityTool services, false otherwise. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/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)

```
java-static fun setAccessibilityDataSensitive(
    event: AccessibilityEvent,
    accessibilityDataSensitive: Boolean
): Unit
```

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 |
|---|---|
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` | The event to update. |
| `accessibilityDataSensitive: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | 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)")
java-static fun [setAction](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#setAction(android.view.accessibility.AccessibilityEvent,int))(event: AccessibilityEvent, action: Int): Unit
```

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

Sets the performed action that triggered this event.

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

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

| Parameters |
|---|---|
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` | event for which to set the action. |
| `action: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The action. |

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

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/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)")
java-static fun [setContentChangeTypes](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#setContentChangeTypes(android.view.accessibility.AccessibilityEvent,int))(event: AccessibilityEvent, changeTypes: Int): Unit
```

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

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

| Parameters |
|---|---|
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` | event for which to set the types. |
| `changeTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | 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/kotlin/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)")
java-static fun [setMovementGranularity](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#setMovementGranularity(android.view.accessibility.AccessibilityEvent,int))(event: AccessibilityEvent, granularity: Int): Unit
```

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

Sets the movement granularity that was traversed.

| Parameters |
|---|---|
| `event: https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html` | event for which to set the granularity. |
| `granularity: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The granularity. |

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