Stay organized with collections
Save and categorize content based on your preferences.
TouchExplorationStateChangeListener
interface TouchExplorationStateChangeListener
Listener for the system touch exploration state. To listen for changes to the touch exploration state on the device, implement this interface and register it with the system by calling #addTouchExplorationStateChangeListener.
Summary
Public methods |
abstract Unit |
Called when the touch exploration enabled state changes.
|
Public methods
onTouchExplorationStateChanged
abstract fun onTouchExplorationStateChanged(enabled: Boolean): Unit
Called when the touch exploration enabled state changes.
Parameters |
enabled |
Boolean: Whether touch exploration is enabled. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AccessibilityManager.TouchExplorationStateChangeListener\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nTouchExplorationStateChangeListener\n===================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/accessibility/AccessibilityManager.TouchExplorationStateChangeListener \"View this page in Java\") \n\n```\ninterface TouchExplorationStateChangeListener\n```\n\n|------------------------------------------------------------------------------------------|\n| [android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener](#) |\n\nListener for the system touch exploration state. To listen for changes to the touch exploration state on the device, implement this interface and register it with the system by calling #addTouchExplorationStateChangeListener.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onTouchExplorationStateChanged](#onTouchExplorationStateChanged(kotlin.Boolean))`(`enabled:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Called when the touch exploration enabled state changes. |\n\nPublic methods\n--------------\n\n### onTouchExplorationStateChanged\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onTouchExplorationStateChanged(enabled: Boolean): Unit\n```\n\nCalled when the touch exploration enabled state changes.\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------|\n| `enabled` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html): Whether touch exploration is enabled. |"]]