java.lang.Object | |
↳ | android.view.accessibility.AccessibilityManager |
System level service that serves as an event dispatch for AccessibilityEvent
s,
and provides facilities for querying the accessibility state of the system.
Accessibility events are generated when something notable happens in the user interface,
for example an Activity
starts, the focus or selection of a
View
changes etc. Parties interested in handling accessibility
events implement and register an accessibility service which extends
AccessibilityService
.
To obtain a handle to the accessibility manager do the following:
AccessibilityManager accessibilityManager =
(AccessibilityManager) context.getSystemService(Context.ACCESSIBILITY_SERVICE);
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AccessibilityManager.AccessibilityStateChangeListener | Listener for the system accessibility state. | ||||||||||
AccessibilityManager.TouchExplorationStateChangeListener | Listener for the system touch exploration state. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Registers an AccessibilityManager.AccessibilityStateChangeListener
for changes in
the global accessibility state of the system.
listener | The listener. |
---|
Registers a AccessibilityManager.TouchExplorationStateChangeListener
for changes in
the global touch exploration state of the system.
listener | The listener. |
---|
This method was deprecated
in API level 14.
Use getInstalledAccessibilityServiceList()
Returns the ServiceInfo
s of the installed accessibility services.
ServiceInfo
s.Returns the AccessibilityServiceInfo
s of the enabled accessibility services
for a given feedback type.
feedbackTypeFlags | The feedback type flags. |
---|
AccessibilityServiceInfo
s.Returns the AccessibilityServiceInfo
s of the installed accessibility services.
AccessibilityServiceInfo
s.
Requests feedback interruption from all accessibility services.
Returns if the accessibility in the system is enabled.
Returns if the touch exploration in the system is enabled.
Unregisters an AccessibilityManager.AccessibilityStateChangeListener
.
listener | The listener. |
---|
Unregisters a AccessibilityManager.TouchExplorationStateChangeListener
.
listener | The listener. |
---|
Sends an AccessibilityEvent
.
event | The event to send. |
---|
IllegalStateException | if accessibility is not enabled.
Note: The preferred mechanism for sending custom accessibility
events is through calling
requestSendAccessibilityEvent(View, AccessibilityEvent)
instead of this method to allow predecessors to augment/filter events sent by
their descendants.
|
---|