# AccessibilityManager

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#nestedclasses)\|[Constants](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#constants)\|[Methods](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#inhmethods)  

# AccessibilityManager

*** ** * ** ***

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

`
public

final

class
AccessibilityManager
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

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

<br />

*** ** * ** ***

System level service that serves as an event dispatch for[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent)s, and provides facilities for querying the accessibility state of the system. Accessibility events are generated when something notable happens in the user interface, for example an[Activity](https://developer.android.com/reference/android/app/Activity)starts, the focus or selection of a[View](https://developer.android.com/reference/android/view/View)changes etc. Parties interested in handling accessibility events implement and register an accessibility service which extends[AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService).  
**See also:**

- [AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent)
- [AccessibilityNodeInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo)
- [AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService)
- [Context.getSystemService(Class)](https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.Class<T>))
- [Context.ACCESSIBILITY_SERVICE](https://developer.android.com/reference/android/content/Context#ACCESSIBILITY_SERVICE)

## Summary

|                                                                                                                              ### Nested classes                                                                                                                              ||
|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` interface` | [AccessibilityManager.AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener) Listener for changes to the state of accessibility services. |
| ` interface` | [AccessibilityManager.AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener) Listener for the system accessibility state.                                 |
| ` interface` | [AccessibilityManager.AudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AudioDescriptionRequestedChangeListener) Listener for the audio description by default state.           |
| ` interface` | [AccessibilityManager.HighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener) Listener for the system high contrast text state.                      |
| ` interface` | [AccessibilityManager.TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener) Listener for the system touch exploration state.                       |

|                                                                                                               ### Constants                                                                                                               ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [FLAG_CONTENT_CONTROLS](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_CONTROLS) Use this flag to indicate the content of a UI that times out contains interactive controls. |
| `int` | [FLAG_CONTENT_ICONS](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_ICONS) Use this flag to indicate the content of a UI that times out contains icons.                      |
| `int` | [FLAG_CONTENT_TEXT](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_TEXT) Use this flag to indicate the content of a UI that times out contains text.                         |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`                                                                                                                                                                                          | ` `[addAccessibilityRequestPreparer](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addAccessibilityRequestPreparer(android.view.accessibility.AccessibilityRequestPreparer))`(`[AccessibilityRequestPreparer](https://developer.android.com/reference/android/view/accessibility/AccessibilityRequestPreparer)` preparer) ` Registers a[AccessibilityRequestPreparer](https://developer.android.com/reference/android/view/accessibility/AccessibilityRequestPreparer).                                                                                                                                                                                                                                                                                                                                                                    |
| ` void`                                                                                                                                                                                          | ` `[addAccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addAccessibilityServicesStateChangeListener(java.util.concurrent.Executor,%20android.view.accessibility.AccessibilityManager.AccessibilityServicesStateChangeListener))`(`[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[AccessibilityManager.AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener)` listener) ` Registers a[AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener).                                                             |
| ` void`                                                                                                                                                                                          | ` `[addAccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addAccessibilityServicesStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityServicesStateChangeListener))`(`[AccessibilityManager.AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener)` listener) ` Registers a[AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener).                                                                                                                                                                                            |
| ` boolean`                                                                                                                                                                                       | ` `[addAccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener))`(`[AccessibilityManager.AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener)` listener) ` Registers an[AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener)for changes in the global accessibility state of the system.                                                                                                                                                                                        |
| ` void`                                                                                                                                                                                          | ` `[addAccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener,%20android.os.Handler))`(`[AccessibilityManager.AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener)` listener, `[Handler](https://developer.android.com/reference/android/os/Handler)` handler) ` Registers an[AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener)for changes in the global accessibility state of the system.                                                                                 |
| ` void`                                                                                                                                                                                          | ` `[addAudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addAudioDescriptionRequestedChangeListener(java.util.concurrent.Executor,%20android.view.accessibility.AccessibilityManager.AudioDescriptionRequestedChangeListener))`(`[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[AccessibilityManager.AudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AudioDescriptionRequestedChangeListener)` listener) ` Registers a[AudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AudioDescriptionRequestedChangeListener)for changes in the audio description by default state of the system. |
| ` void`                                                                                                                                                                                          | ` `[addHighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addHighContrastTextStateChangeListener(java.util.concurrent.Executor,%20android.view.accessibility.AccessibilityManager.HighContrastTextStateChangeListener))`(`[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)` executor, `[AccessibilityManager.HighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener)` listener) ` Registers a[HighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener)for changes in the global high contrast text state of the system.                                |
| ` boolean`                                                                                                                                                                                       | ` `[addTouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addTouchExplorationStateChangeListener(android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener))`(`[AccessibilityManager.TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener)` listener) ` Registers a[TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener)for changes in the global touch exploration state of the system.                                                                                                                                                                |
| ` void`                                                                                                                                                                                          | ` `[addTouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addTouchExplorationStateChangeListener(android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener,%20android.os.Handler))`(`[AccessibilityManager.TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener)` listener, `[Handler](https://developer.android.com/reference/android/os/Handler)` handler) ` Registers an[TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener)for changes in the global touch exploration state of the system.                                                        |
| ` int`                                                                                                                                                                                           | ` `[getAccessibilityFocusColor](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getAccessibilityFocusColor())`() ` Gets the color of the focus rectangle.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` int`                                                                                                                                                                                           | ` `[getAccessibilityFocusStrokeWidth](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getAccessibilityFocusStrokeWidth())`() ` Gets the strokeWidth of the focus rectangle.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` `[List](https://developer.android.com/reference/java/util/List)`<`[ServiceInfo](https://developer.android.com/reference/android/content/pm/ServiceInfo)`>`                                     | ` `[getAccessibilityServiceList](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getAccessibilityServiceList())`() ` *This method was deprecated in API level 15. Use[getInstalledAccessibilityServiceList()](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getInstalledAccessibilityServiceList())*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` `[List](https://developer.android.com/reference/java/util/List)`<`[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)`>` | ` `[getEnabledAccessibilityServiceList](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getEnabledAccessibilityServiceList(int))`(int feedbackTypeFlags) ` Returns the[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)s of the enabled accessibility services for a given feedback type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` `[List](https://developer.android.com/reference/java/util/List)`<`[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)`>` | ` `[getInstalledAccessibilityServiceList](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getInstalledAccessibilityServiceList())`() ` Returns the[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)s of the installed accessibility services.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` int`                                                                                                                                                                                           | ` `[getRecommendedTimeoutMillis](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getRecommendedTimeoutMillis(int,%20int))`(int originalTimeout, int uiContentFlags) ` Get the recommended timeout for changes to the UI needed by this user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` void`                                                                                                                                                                                          | ` `[interrupt](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#interrupt())`() ` Requests feedback interruption from all accessibility services.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` static boolean`                                                                                                                                                                                | ` `[isAccessibilityButtonSupported](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#isAccessibilityButtonSupported())`() ` Determines if the accessibility button within the system navigation area is supported.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` boolean`                                                                                                                                                                                       | ` `[isAudioDescriptionRequested](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#isAudioDescriptionRequested())`() ` Determines if users want to select sound track with audio description by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` boolean`                                                                                                                                                                                       | ` `[isEnabled](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#isEnabled())`() ` Returns if the accessibility in the system is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` boolean`                                                                                                                                                                                       | ` `[isHighContrastTextEnabled](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#isHighContrastTextEnabled())`() ` Returns if high contrast text in the system is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` boolean`                                                                                                                                                                                       | ` `[isRequestFromAccessibilityTool](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#isRequestFromAccessibilityTool())`() ` Whether the current accessibility request comes from an[AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService)with the[AccessibilityServiceInfo.isAccessibilityTool](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool())property set to true.                                                                                                                                                                                                                                                                                                                                          |
| ` boolean`                                                                                                                                                                                       | ` `[isTouchExplorationEnabled](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#isTouchExplorationEnabled())`() ` Returns if the touch exploration in the system is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` void`                                                                                                                                                                                          | ` `[removeAccessibilityRequestPreparer](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#removeAccessibilityRequestPreparer(android.view.accessibility.AccessibilityRequestPreparer))`(`[AccessibilityRequestPreparer](https://developer.android.com/reference/android/view/accessibility/AccessibilityRequestPreparer)` preparer) ` Unregisters a[AccessibilityRequestPreparer](https://developer.android.com/reference/android/view/accessibility/AccessibilityRequestPreparer).                                                                                                                                                                                                                                                                                                                                                            |
| ` boolean`                                                                                                                                                                                       | ` `[removeAccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#removeAccessibilityServicesStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityServicesStateChangeListener))`(`[AccessibilityManager.AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener)` listener) ` Unregisters a[AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener).                                                                                                                                                                                    |
| ` boolean`                                                                                                                                                                                       | ` `[removeAccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#removeAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener))`(`[AccessibilityManager.AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener)` listener) ` Unregisters an[AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener).                                                                                                                                                                                                                                           |
| ` boolean`                                                                                                                                                                                       | ` `[removeAudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#removeAudioDescriptionRequestedChangeListener(android.view.accessibility.AccessibilityManager.AudioDescriptionRequestedChangeListener))`(`[AccessibilityManager.AudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AudioDescriptionRequestedChangeListener)` listener) ` Unregisters a[AudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AudioDescriptionRequestedChangeListener).                                                                                                                                                                                           |
| ` void`                                                                                                                                                                                          | ` `[removeHighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#removeHighContrastTextStateChangeListener(android.view.accessibility.AccessibilityManager.HighContrastTextStateChangeListener))`(`[AccessibilityManager.HighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener)` listener) ` Unregisters a[HighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener).                                                                                                                                                                                                                       |
| ` boolean`                                                                                                                                                                                       | ` `[removeTouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#removeTouchExplorationStateChangeListener(android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener))`(`[AccessibilityManager.TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener)` listener) ` Unregisters a[TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener).                                                                                                                                                                                                                       |
| ` void`                                                                                                                                                                                          | ` `[sendAccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#sendAccessibilityEvent(android.view.accessibility.AccessibilityEvent))`(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent)` event) ` Sends an[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent).                                                                                                                                                                                                                                                                                                                                                                                                                                              |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### FLAG_CONTENT_CONTROLS

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

```
public static final int FLAG_CONTENT_CONTROLS
```

Use this flag to indicate the content of a UI that times out contains interactive controls.

<br />

**See also:**

- [getRecommendedTimeoutMillis(int, int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getRecommendedTimeoutMillis(int,%20int))

Constant Value: 4 (0x00000004)  

### FLAG_CONTENT_ICONS

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

```
public static final int FLAG_CONTENT_ICONS
```

Use this flag to indicate the content of a UI that times out contains icons.

<br />

**See also:**

- [getRecommendedTimeoutMillis(int, int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getRecommendedTimeoutMillis(int,%20int))

Constant Value: 1 (0x00000001)  

### FLAG_CONTENT_TEXT

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

```
public static final int FLAG_CONTENT_TEXT
```

Use this flag to indicate the content of a UI that times out contains text.

<br />

**See also:**

- [getRecommendedTimeoutMillis(int, int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getRecommendedTimeoutMillis(int,%20int))

Constant Value: 2 (0x00000002)

## Public methods

### addAccessibilityRequestPreparer

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

```
public void addAccessibilityRequestPreparer (AccessibilityRequestPreparer preparer)
```

Registers a[AccessibilityRequestPreparer](https://developer.android.com/reference/android/view/accessibility/AccessibilityRequestPreparer).

<br />

|                    Parameters                     ||
|------------|---------------------------------------|
| `preparer` | `AccessibilityRequestPreparer` <br /> |

### addAccessibilityServicesStateChangeListener

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

```
public void addAccessibilityServicesStateChangeListener (Executor executor, 
                AccessibilityManager.AccessibilityServicesStateChangeListener listener)
```

Registers a[AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener).

<br />

|                                                                                                                                                                                                                                                                                                      Parameters                                                                                                                                                                                                                                                                                                       ||
|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `executor` | `Executor`: The executor. This value cannot be`null`. Callback and listener events are dispatched through this[Executor](https://developer.android.com/reference/java/util/concurrent/Executor), providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use[Context.getMainExecutor()](https://developer.android.com/reference/android/content/Context#getMainExecutor()). Otherwise, provide an[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)that dispatches to an appropriate thread. <br /> |
| `listener` | `AccessibilityManager.AccessibilityServicesStateChangeListener`: The listener. This value cannot be`null`. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

### addAccessibilityServicesStateChangeListener

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

```
public void addAccessibilityServicesStateChangeListener (AccessibilityManager.AccessibilityServicesStateChangeListener listener)
```

Registers a[AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener). This will execute a callback on the process's main handler.

<br />

|                                                          Parameters                                                           ||
|------------|-------------------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.AccessibilityServicesStateChangeListener`: The listener. This value cannot be`null`. <br /> |

### addAccessibilityStateChangeListener

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

```
public boolean addAccessibilityStateChangeListener (AccessibilityManager.AccessibilityStateChangeListener listener)
```

Registers an[AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener)for changes in the global accessibility state of the system. Equivalent to calling[addAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener, android.os.Handler)](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener,%20android.os.Handler))with a null handler.

<br />

|                                                      Parameters                                                       ||
|------------|-----------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.AccessibilityStateChangeListener`: The listener. This value cannot be`null`. <br /> |

|                 Returns                 ||
|-----------|------------------------------|
| `boolean` | Always returns`true`. <br /> |

### addAccessibilityStateChangeListener

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

```
public void addAccessibilityStateChangeListener (AccessibilityManager.AccessibilityStateChangeListener listener, 
                Handler handler)
```

Registers an[AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener)for changes in the global accessibility state of the system. If the listener has already been registered, the handler used to call it back is updated.

<br />

|                                                                  Parameters                                                                  ||
|------------|----------------------------------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.AccessibilityStateChangeListener`: The listener. This value cannot be`null`. <br />                        |
| `handler`  | `Handler`: The handler on which the listener should be called back, or`null`for a callback on the process's main handler. <br /> |

### addAudioDescriptionRequestedChangeListener

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

```
public void addAudioDescriptionRequestedChangeListener (Executor executor, 
                AccessibilityManager.AudioDescriptionRequestedChangeListener listener)
```

Registers a[AudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AudioDescriptionRequestedChangeListener)for changes in the audio description by default state of the system. The value could be read via[isAudioDescriptionRequested()](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#isAudioDescriptionRequested()).

<br />

|                                                          Parameters                                                          ||
|------------|------------------------------------------------------------------------------------------------------------------|
| `executor` | `Executor`: The executor on which the listener should be called back. This value cannot be`null`. <br />         |
| `listener` | `AccessibilityManager.AudioDescriptionRequestedChangeListener`: The listener. This value cannot be`null`. <br /> |

### addHighContrastTextStateChangeListener

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

```
public void addHighContrastTextStateChangeListener (Executor executor, 
                AccessibilityManager.HighContrastTextStateChangeListener listener)
```

Registers a[HighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener)for changes in the global high contrast text state of the system.

<br />

|                                                                                                                                                                                                                                                                                                                  Parameters                                                                                                                                                                                                                                                                                                                  ||
|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `executor` | `Executor`: a executor to call the listener from This value cannot be`null`. Callback and listener events are dispatched through this[Executor](https://developer.android.com/reference/java/util/concurrent/Executor), providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use[Context.getMainExecutor()](https://developer.android.com/reference/android/content/Context#getMainExecutor()). Otherwise, provide an[Executor](https://developer.android.com/reference/java/util/concurrent/Executor)that dispatches to an appropriate thread. <br /> |
| `listener` | `AccessibilityManager.HighContrastTextStateChangeListener`: The listener to be called This value cannot be`null`. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

### addTouchExplorationStateChangeListener

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

```
public boolean addTouchExplorationStateChangeListener (AccessibilityManager.TouchExplorationStateChangeListener listener)
```

Registers a[TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener)for changes in the global touch exploration state of the system. Equivalent to calling[addTouchExplorationStateChangeListener(android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener, android.os.Handler)](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addTouchExplorationStateChangeListener(android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener,%20android.os.Handler))with a null handler.

<br />

|                                                        Parameters                                                        ||
|------------|--------------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.TouchExplorationStateChangeListener`: The listener. This value cannot be`null`. <br /> |

|                 Returns                 ||
|-----------|------------------------------|
| `boolean` | Always returns`true`. <br /> |

### addTouchExplorationStateChangeListener

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

```
public void addTouchExplorationStateChangeListener (AccessibilityManager.TouchExplorationStateChangeListener listener, 
                Handler handler)
```

Registers an[TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener)for changes in the global touch exploration state of the system. If the listener has already been registered, the handler used to call it back is updated.

<br />

|                                                                  Parameters                                                                  ||
|------------|----------------------------------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.TouchExplorationStateChangeListener`: The listener. This value cannot be`null`. <br />                     |
| `handler`  | `Handler`: The handler on which the listener should be called back, or`null`for a callback on the process's main handler. <br /> |

### getAccessibilityFocusColor

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

```
public int getAccessibilityFocusColor ()
```

Gets the color of the focus rectangle. This value can be set by[AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService).

<br />

|                     Returns                     ||
|-------|------------------------------------------|
| `int` | The color of the focus rectangle. <br /> |

### getAccessibilityFocusStrokeWidth

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

```
public int getAccessibilityFocusStrokeWidth ()
```

Gets the strokeWidth of the focus rectangle. This value can be set by[AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService).

<br />

|                             Returns                             ||
|-------|----------------------------------------------------------|
| `int` | The strokeWidth of the focus rectangle in pixels. <br /> |

### getAccessibilityServiceList

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

```
public List<ServiceInfo> getAccessibilityServiceList ()
```

<br />

**This method was deprecated in API level 15.**   
Use[getInstalledAccessibilityServiceList()](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getInstalledAccessibilityServiceList())

Returns the[ServiceInfo](https://developer.android.com/reference/android/content/pm/ServiceInfo)s of the installed accessibility services.

<br />

|                                                                                                                                      Returns                                                                                                                                       ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List)`<`[ServiceInfo](https://developer.android.com/reference/android/content/pm/ServiceInfo)`>` | An unmodifiable list with[ServiceInfo](https://developer.android.com/reference/android/content/pm/ServiceInfo)s. <br /> |

### getEnabledAccessibilityServiceList

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

```
public List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList (int feedbackTypeFlags)
```

Returns the[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)s of the enabled accessibility services for a given feedback type.

<br />

|                         Parameters                          ||
|---------------------|----------------------------------------|
| `feedbackTypeFlags` | `int`: The feedback type flags. <br /> |

|                                                                                                                                                                          Returns                                                                                                                                                                           ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List)`<`[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)`>` | An unmodifiable list with[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)s. <br /> |

**See also:**

- [AccessibilityServiceInfo.FEEDBACK_AUDIBLE](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#FEEDBACK_AUDIBLE)
- [AccessibilityServiceInfo.FEEDBACK_GENERIC](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#FEEDBACK_GENERIC)
- [AccessibilityServiceInfo.FEEDBACK_HAPTIC](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#FEEDBACK_HAPTIC)
- [AccessibilityServiceInfo.FEEDBACK_SPOKEN](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#FEEDBACK_SPOKEN)
- [AccessibilityServiceInfo.FEEDBACK_VISUAL](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#FEEDBACK_VISUAL)
- [AccessibilityServiceInfo.FEEDBACK_BRAILLE](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#FEEDBACK_BRAILLE)  

### getInstalledAccessibilityServiceList

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

```
public List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList ()
```

Returns the[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)s of the installed accessibility services.

<br />

|                                                                                                                                                                          Returns                                                                                                                                                                           ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List)`<`[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)`>` | An unmodifiable list with[AccessibilityServiceInfo](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo)s. <br /> |

### getRecommendedTimeoutMillis

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

```
public int getRecommendedTimeoutMillis (int originalTimeout, 
                int uiContentFlags)
```

Get the recommended timeout for changes to the UI needed by this user. Controls should remain on the screen for at least this long to give users time to react. Some users may need extra time to review the controls, or to reach them, or to activate assistive technology to activate the controls automatically.

Use the combination of content flags to indicate contents of UI. For example, use`FLAG_CONTENT_ICONS | FLAG_CONTENT_TEXT`for message notification which contains icons and text, or use`FLAG_CONTENT_TEXT | FLAG_CONTENT_CONTROLS`for button dialog which contains text and button controls.

<br />

<br />

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ||
|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `originalTimeout` | `int`: The timeout appropriate for users with no accessibility needs. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `uiContentFlags`  | `int`: The combination of flags[FLAG_CONTENT_ICONS](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_ICONS),[FLAG_CONTENT_TEXT](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_TEXT)or[FLAG_CONTENT_CONTROLS](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_CONTROLS)to indicate the contents of UI. Value is either`0`or a combination of[FLAG_CONTENT_ICONS](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_ICONS),[FLAG_CONTENT_TEXT](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_TEXT), and[FLAG_CONTENT_CONTROLS](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#FLAG_CONTENT_CONTROLS) <br /> |

|                                    Returns                                     ||
|-------|-------------------------------------------------------------------------|
| `int` | The recommended UI timeout for the current user in milliseconds. <br /> |

### interrupt

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

```
public void interrupt ()
```

Requests feedback interruption from all accessibility services.

<br />

### isAccessibilityButtonSupported

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

```
public static boolean isAccessibilityButtonSupported ()
```

Determines if the accessibility button within the system navigation area is supported.

<br />

|                                             Returns                                              ||
|-----------|---------------------------------------------------------------------------------------|
| `boolean` | `true`if the accessibility button is supported on this device,`false`otherwise <br /> |

### isAudioDescriptionRequested

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

```
public boolean isAudioDescriptionRequested ()
```

Determines if users want to select sound track with audio description by default.

Audio description, also referred to as a video description, described video, or more precisely called a visual description, is a form of narration used to provide information surrounding key visual elements in a media work for the benefit of blind and visually impaired consumers.

The method provides the preference value to content provider apps to select the default sound track during playing a video or movie.

Add listener to detect the state change via[addAudioDescriptionRequestedChangeListener(Executor, AudioDescriptionRequestedChangeListener)](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#addAudioDescriptionRequestedChangeListener(java.util.concurrent.Executor,%20android.view.accessibility.AccessibilityManager.AudioDescriptionRequestedChangeListener))

<br />

<br />

|                                    Returns                                    ||
|-----------|--------------------------------------------------------------------|
| `boolean` | `true`if the audio description is enabled,`false`otherwise. <br /> |

### isEnabled

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

```
public boolean isEnabled ()
```

Returns if the accessibility in the system is enabled.

**Note:** This query is used for sending[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent)s, since events are only needed if accessibility is on. Avoid changing UI or app behavior based on the state of accessibility. While well-intentioned, doing this creates brittle, less well-maintained code that works for some users but not others. Shared code leads to more equitable experiences and less technical debt.

For example, if you want to expose a unique interaction with your app, use ViewCompat#addAccessibilityAction in AndroidX to make this interaction - ideally with the same code path used for non-accessibility users - available to accessibility services. Services can then expose this action in the way best fit for their users.

<br />

|                               Returns                                ||
|-----------|-----------------------------------------------------------|
| `boolean` | True if accessibility is enabled, false otherwise. <br /> |

### isHighContrastTextEnabled

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

```
public boolean isHighContrastTextEnabled ()
```

Returns if high contrast text in the system is enabled.

**Note:**You need to query this only if you application is doing its own rendering and does not rely on the platform rendering pipeline.

<br />

<br />

|                                  Returns                                  ||
|-----------|----------------------------------------------------------------|
| `boolean` | True if high contrast text is enabled, false otherwise. <br /> |

### isRequestFromAccessibilityTool

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

```
public boolean isRequestFromAccessibilityTool ()
```

Whether the current accessibility request comes from an[AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService)with the[AccessibilityServiceInfo.isAccessibilityTool](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#isAccessibilityTool())property set to true.

You can use this method inside[AccessibilityNodeProvider](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeProvider)to decide how to populate your nodes.

**Note:** The return value is valid only when an[AccessibilityNodeInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo)request is in progress, can change from one request to another, and has no meaning when a request is not in progress.

<br />

<br />

|                                           Returns                                           ||
|-----------|----------------------------------------------------------------------------------|
| `boolean` | True if the current request is from a tool that sets isAccessibilityTool. <br /> |

### isTouchExplorationEnabled

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

```
public boolean isTouchExplorationEnabled ()
```

Returns if the touch exploration in the system is enabled.

**Note:** This query is used for dispatching hover events, such as[MotionEvent.ACTION_HOVER_ENTER](https://developer.android.com/reference/android/view/MotionEvent#ACTION_HOVER_ENTER), to accessibility services to manage touch exploration. Avoid changing UI or app behavior based on the state of accessibility. While well-intentioned, doing this creates brittle, less well-maintained code that works for som users but not others. Shared code leads to more equitable experiences and less technical debt.

<br />

|                                 Returns                                  ||
|-----------|---------------------------------------------------------------|
| `boolean` | True if touch exploration is enabled, false otherwise. <br /> |

### removeAccessibilityRequestPreparer

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

```
public void removeAccessibilityRequestPreparer (AccessibilityRequestPreparer preparer)
```

Unregisters a[AccessibilityRequestPreparer](https://developer.android.com/reference/android/view/accessibility/AccessibilityRequestPreparer).

<br />

|                    Parameters                     ||
|------------|---------------------------------------|
| `preparer` | `AccessibilityRequestPreparer` <br /> |

### removeAccessibilityServicesStateChangeListener

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

```
public boolean removeAccessibilityServicesStateChangeListener (AccessibilityManager.AccessibilityServicesStateChangeListener listener)
```

Unregisters a[AccessibilityServicesStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener).

<br />

|                                                          Parameters                                                           ||
|------------|-------------------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.AccessibilityServicesStateChangeListener`: The listener. This value cannot be`null`. <br /> |

|                              Returns                               ||
|-----------|---------------------------------------------------------|
| `boolean` | `true`if the listener was previously registered. <br /> |

### removeAccessibilityStateChangeListener

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

```
public boolean removeAccessibilityStateChangeListener (AccessibilityManager.AccessibilityStateChangeListener listener)
```

Unregisters an[AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener).

<br />

|                                                      Parameters                                                       ||
|------------|-----------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.AccessibilityStateChangeListener`: The listener. This value cannot be`null`. <br /> |

|                              Returns                              ||
|-----------|--------------------------------------------------------|
| `boolean` | True if the listener was previously registered. <br /> |

### removeAudioDescriptionRequestedChangeListener

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

```
public boolean removeAudioDescriptionRequestedChangeListener (AccessibilityManager.AudioDescriptionRequestedChangeListener listener)
```

Unregisters a[AudioDescriptionRequestedChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AudioDescriptionRequestedChangeListener).

<br />

|                                                          Parameters                                                          ||
|------------|------------------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.AudioDescriptionRequestedChangeListener`: The listener. This value cannot be`null`. <br /> |

|                            Returns                            ||
|-----------|----------------------------------------------------|
| `boolean` | True if listener was previously registered. <br /> |

### removeHighContrastTextStateChangeListener

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

```
public void removeHighContrastTextStateChangeListener (AccessibilityManager.HighContrastTextStateChangeListener listener)
```

Unregisters a[HighContrastTextStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener).

<br />

|                                                        Parameters                                                        ||
|------------|--------------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.HighContrastTextStateChangeListener`: The listener. This value cannot be`null`. <br /> |

### removeTouchExplorationStateChangeListener

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

```
public boolean removeTouchExplorationStateChangeListener (AccessibilityManager.TouchExplorationStateChangeListener listener)
```

Unregisters a[TouchExplorationStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener).

<br />

|                                                        Parameters                                                        ||
|------------|--------------------------------------------------------------------------------------------------------------|
| `listener` | `AccessibilityManager.TouchExplorationStateChangeListener`: The listener. This value cannot be`null`. <br /> |

|                            Returns                            ||
|-----------|----------------------------------------------------|
| `boolean` | True if listener was previously registered. <br /> |

### sendAccessibilityEvent

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

```
public void sendAccessibilityEvent (AccessibilityEvent event)
```

Sends an[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent).

<br />

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

|                                                                                                                                                                                                                                                                                Throws                                                                                                                                                                                                                                                                                 ||
|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException) | if accessibility is not enabled.**Note:** The preferred mechanism for sending custom accessibility events is through calling[ViewParent.requestSendAccessibilityEvent(View, AccessibilityEvent)](https://developer.android.com/reference/android/view/ViewParent#requestSendAccessibilityEvent(android.view.View,%20android.view.accessibility.AccessibilityEvent))instead of this method to allow predecessors to augment/filter events sent by their descendants. |