Added in API level 14

AccessibilityStateChangeListener


interface AccessibilityStateChangeListener
android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener

Listener for the system accessibility state. To listen for changes to the accessibility state on the device, implement this interface and register it with the system by calling #addAccessibilityStateChangeListener.

Summary

Public methods
abstract Unit

Called when the accessibility enabled state changes.

Public methods

onAccessibilityStateChanged

Added in API level 14
abstract fun onAccessibilityStateChanged(enabled: Boolean): Unit

Called when the accessibility enabled state changes.

Parameters
enabled Boolean: Whether accessibility is enabled.