Stay organized with collections
Save and categorize content based on your preferences.
AccessibilityServicesStateChangeListener
interface AccessibilityServicesStateChangeListener
Listener for changes to the state of accessibility services.
This refers to changes to AccessibilityServiceInfo
, including:
- Whenever a service is enabled or disabled, or its info has been set or removed.
- Whenever a metadata attribute of any running service's info changes.
Summary
Public methods |
abstract Unit |
Called when the state of accessibility services changes.
|
Public methods
onAccessibilityServicesStateChanged
abstract fun onAccessibilityServicesStateChanged(manager: AccessibilityManager): Unit
Called when the state of accessibility services changes.
Parameters |
manager |
AccessibilityManager: The manager that is calling back This value cannot be null . |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AccessibilityManager.AccessibilityServicesStateChangeListener\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAccessibilityServicesStateChangeListener\n========================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/accessibility/AccessibilityManager.AccessibilityServicesStateChangeListener \"View this page in Java\") \n\n```\ninterface AccessibilityServicesStateChangeListener\n```\n\n|-----------------------------------------------------------------------------------------------|\n| [android.view.accessibility.AccessibilityManager.AccessibilityServicesStateChangeListener](#) |\n\nListener for changes to the state of accessibility services.\n\nThis refers to changes to [AccessibilityServiceInfo](../../accessibilityservice/AccessibilityServiceInfo.html#), including:\n\n- Whenever a service is enabled or disabled, or its info has been set or removed.\n- Whenever a metadata attribute of any running service's info changes.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onAccessibilityServicesStateChanged](#onAccessibilityServicesStateChanged(android.view.accessibility.AccessibilityManager))`(`manager:` `[AccessibilityManager](/reference/kotlin/android/view/accessibility/AccessibilityManager)`)` Called when the state of accessibility services changes. |\n\nPublic methods\n--------------\n\n### onAccessibilityServicesStateChanged\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onAccessibilityServicesStateChanged(manager: AccessibilityManager): Unit\n```\n\nCalled when the state of accessibility services changes.\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `manager` | [AccessibilityManager](/reference/kotlin/android/view/accessibility/AccessibilityManager): The manager that is calling back This value cannot be `null`. |"]]