Added in API level 4

android.accessibilityservice

The classes in this package are used for development of accessibility service that provide alternative or augmented feedback to the user.

An AccessibilityService runs in the background and receives callbacks by the system when AccessibilityEvents are fired. Such events denote some state transition in the user interface, for example, the focus has changed, a button has been clicked, etc. Such a service can optionally request the capability for querying the content of the active window. Development of an accessibility service requires extends this class and implements its abstract methods.

An AccessibilityServiceInfo describes an AccessibilityService. The system notifies an AccessibilityService for AccessibilityEvents according to the information encapsulated in this class.

Interfaces

AccessibilityService.MagnificationController.OnMagnificationChangedListener Listener for changes in the state of magnification. 
AccessibilityService.SoftKeyboardController.OnShowModeChangedListener Listener for changes in the soft keyboard show mode. 
AccessibilityService.TakeScreenshotCallback Interface used to report status of taking screenshot. 
TouchInteractionController.Callback callbacks allow services to receive motion events and state change updates. 

Classes

AccessibilityButtonController Controller for the accessibility button within the system's navigation area

This class may be used to query the accessibility button's state and register callbacks for interactions with and state changes to the accessibility button when AccessibilityServiceInfo#FLAG_REQUEST_ACCESSIBILITY_BUTTON is set. 

AccessibilityButtonController.AccessibilityButtonCallback Callback for interaction with and changes to state of the accessibility button within the system's navigation area. 
AccessibilityGestureEvent This class describes the gesture event including gesture id and which display it happens on. 
AccessibilityService Accessibility services should only be used to assist users with disabilities in using Android devices and apps. 
AccessibilityService.GestureResultCallback Class used to report status of dispatched gestures 
AccessibilityService.MagnificationController Used to control and query the state of display magnification. 
AccessibilityService.ScreenshotResult Can be used to construct a bitmap of the screenshot or any other operations for AccessibilityService#takeScreenshot API. 
AccessibilityService.SoftKeyboardController Used to control, query, and listen for changes to the soft keyboard show mode. 
AccessibilityServiceInfo This class describes an AccessibilityService
FingerprintGestureController An AccessibilityService can capture gestures performed on a device's fingerprint sensor, as long as the device has a sensor capable of detecting gestures. 
FingerprintGestureController.FingerprintGestureCallback Class that is called back when fingerprint gestures are being used for accessibility. 
GestureDescription Accessibility services with the R.styleable.AccessibilityService_canPerformGestures property can dispatch gestures. 
GestureDescription.Builder Builder for a GestureDescription 
GestureDescription.StrokeDescription Immutable description of stroke that can be part of a gesture. 
InputMethod This class provides input method APIs. 
InputMethod.AccessibilityInputConnection This class provides the allowed list of InputConnection APIs for accessibility services. 
MagnificationConfig This class describes the magnification config for AccessibilityService to control the magnification. 
MagnificationConfig.Builder Builder for creating MagnificationConfig objects. 
TouchInteractionController This class allows a service to handle touch exploration and the detection of specialized accessibility gestures.