HighContrastTextStateChangeListener


interface 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 addHighContrastTextStateChangeListener.

Summary

Public methods
abstract Unit

Called when the high contrast text enabled state changes.

Public methods

onHighContrastTextStateChanged

abstract fun onHighContrastTextStateChanged(enabled: Boolean): Unit

Called when the high contrast text enabled state changes.

Parameters
enabled Boolean: Whether high contrast text is enabled.