public class AccessibilityStateEvent extends Object
If you have registered a status change observer, it will receive an event when the accessibility status has changed. Then you can process the event based on the result in the callback.
For example, you can determine the accessibility status based on the event type in
AccessibilityStateEvent#EVENT_ACCESSIBILITY_STATE_CHANGED.
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
EVENT_ACCESSIBILITY_STATE_CHANGED |
Describes the type of the accessibility status event.
|
static int |
EVENT_TOUCH_BROWSE_STATE_CHANGED |
Describes the type of the touch exploration status event.
|
| 构造器 | 说明 |
|---|---|
AccessibilityStateEvent() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getEventMsg() |
Obtains the status event description.
|
int |
getEventResult() |
Obtains the status event result.
|
int |
getEventType() |
Obtains the status event type.
|
public static final int EVENT_ACCESSIBILITY_STATE_CHANGED
public static final int EVENT_TOUCH_BROWSE_STATE_CHANGED
public int getEventType()
EVENT_ACCESSIBILITY_STATE_CHANGED,
EVENT_TOUCH_BROWSE_STATE_CHANGEDpublic int getEventResult()
0 if the status event is enabled; returns 1 otherwise.public String getEventMsg()