public interface AccessibilityStateObserver
This interface is called to register an observer for listening to accessibility status changes. When the
accessibility status has changed, a callback is triggered to send the status change event specified by
AccessibilityStateEvent.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onStateChanged(AccessibilityStateEvent stateEvent) |
Receives notifications on accessibility status changes.
|
void onStateChanged(AccessibilityStateEvent stateEvent)
For example, when the accessibility status has changed, the interface will receive a status change event and then notify the user that the accessibility ability is unavailable.
stateEvent - Indicates the status change event.AccessibilityStateEvent