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,["# AccessibilityManagerCompat.AccessibilityStateChangeListener\n\nadded in [version 25.1.0](/topic/libraries/support-library/revisions) \nbelongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1 \nDeprecated since version 26.1.0 \nSummary: [Methods](#pubmethods) \\| [\\[Expand All\\]](#) \n\nAccessibilityManagerCompat.AccessibilityStateChangeListener\n===========================================================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\n\n`\npublic\nstatic\n\n\ninterface\nAccessibilityManagerCompat.AccessibilityStateChangeListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------------------------------------------------|\n| android.support.v4.view.accessibility.AccessibilityManagerCompat.AccessibilityStateChangeListener |\n\n|---|---|\n| Known Indirect Subclasses [AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat](/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat](/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat) | *This class was deprecated in API level 25.1.0. Use [AccessibilityManager.AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener.html) directly instead of this listener.* | ||\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 26.1.0.** \n\nUse [AccessibilityManager.AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener.html) directly\ninstead of this listener.\n\nListener for the accessibility state.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onAccessibilityStateChanged](/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListener#onAccessibilityStateChanged(boolean))`(boolean enabled) ` *This method was deprecated in API level 26.1.0. Use [AccessibilityManager.AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener.html) directly.* |\n\nPublic methods\n--------------\n\n### onAccessibilityStateChanged\n\nadded in [version 22.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid onAccessibilityStateChanged (boolean enabled)\n```\n\n\n**This method was deprecated\nin API level 26.1.0.** \n\nUse [AccessibilityManager.AccessibilityStateChangeListener](https://developer.android.com/reference/android/view/accessibility/AccessibilityManager.AccessibilityStateChangeListener.html) directly.\n\nCalled back on change in the accessibility state.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------------------------------------|\n| `enabled` | `boolean`: Whether accessibility is enabled. \u003cbr /\u003e |\n\n-\n\n Interfaces\n ----------\n\n - [AccessibilityManagerCompat.AccessibilityStateChangeListener](/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListener)\n - [AccessibilityManagerCompat.TouchExplorationStateChangeListener](/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.TouchExplorationStateChangeListener)\n-\n\n Classes\n -------\n\n - [AccessibilityEventCompat](/reference/android/support/v4/view/accessibility/AccessibilityEventCompat)\n - [AccessibilityManagerCompat](/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat)\n - [AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat](/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat)\n - [AccessibilityNodeInfoCompat](/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat)\n - [AccessibilityNodeInfoCompat.AccessibilityActionCompat](/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat)\n - [AccessibilityNodeInfoCompat.CollectionInfoCompat](/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.CollectionInfoCompat)\n - [AccessibilityNodeInfoCompat.CollectionItemInfoCompat](/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat)\n - [AccessibilityNodeInfoCompat.RangeInfoCompat](/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.RangeInfoCompat)\n - [AccessibilityNodeProviderCompat](/reference/android/support/v4/view/accessibility/AccessibilityNodeProviderCompat)\n - [AccessibilityRecordCompat](/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat)\n - [AccessibilityWindowInfoCompat](/reference/android/support/v4/view/accessibility/AccessibilityWindowInfoCompat)"]]