Stay organized with collections
Save and categorize content based on your preferences.
AccessibilityManager.HighContrastTextStateChangeListener
public
static
interface
AccessibilityManager.HighContrastTextStateChangeListener
android.view.accessibility.AccessibilityManager.HighContrastTextStateChangeListener
|
Listener for the system high contrast text state. To listen for changes to
the high contrast text state on the device, implement this interface and
register it with the system by calling
AccessibilityManager.addHighContrastTextStateChangeListener(Executor, HighContrastTextStateChangeListener)
.
Summary
Public methods
onHighContrastTextStateChanged
public abstract void onHighContrastTextStateChanged (boolean enabled)
Called when the high contrast text enabled state changes.
Parameters |
enabled |
boolean : Whether high contrast text 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-03-13 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-03-13 UTC."],[],[],null,["# AccessibilityManager.HighContrastTextStateChangeListener\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nAccessibilityManager.HighContrastTextStateChangeListener\n========================================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAccessibilityManager.HighContrastTextStateChangeListener\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------------------------------------|\n| android.view.accessibility.AccessibilityManager.HighContrastTextStateChangeListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener for the system high contrast text state. To listen for changes to\nthe high contrast text state on the device, implement this interface and\nregister it with the system by calling\n[AccessibilityManager.addHighContrastTextStateChangeListener(Executor, HighContrastTextStateChangeListener)](/reference/android/view/accessibility/AccessibilityManager#addHighContrastTextStateChangeListener(java.util.concurrent.Executor,%20android.view.accessibility.AccessibilityManager.HighContrastTextStateChangeListener)).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onHighContrastTextStateChanged](/reference/android/view/accessibility/AccessibilityManager.HighContrastTextStateChangeListener#onHighContrastTextStateChanged(boolean))`(boolean enabled) ` Called when the high contrast text enabled state changes. |\n\nPublic methods\n--------------\n\n### onHighContrastTextStateChanged\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onHighContrastTextStateChanged (boolean enabled)\n```\n\nCalled when the high contrast text enabled state changes.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|----------------------------------------------------------|\n| `enabled` | `boolean`: Whether high contrast text is enabled. \u003cbr /\u003e |"]]