Skip to content

Most visited

Recently visited

navigation

AccessibilityManagerCompat

public final class AccessibilityManagerCompat
extends Object

java.lang.Object
   ↳ android.support.v4.view.accessibility.AccessibilityManagerCompat


Helper for accessing features in AccessibilityManager introduced after API level 4 in a backwards compatible fashion.

Summary

Nested classes

class AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat

Listener for the accessibility state. 

Public methods

static boolean addAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat listener)

Registers an AccessibilityManager.AccessibilityStateChangeListener for changes in the global accessibility state of the system.

static List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(AccessibilityManager manager, int feedbackTypeFlags)

Returns the AccessibilityServiceInfos of the enabled accessibility services for a given feedback type.

static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(AccessibilityManager manager)

Returns the AccessibilityServiceInfos of the installed accessibility services.

static boolean isTouchExplorationEnabled(AccessibilityManager manager)

Returns if the touch exploration in the system is enabled.

static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat listener)

Unregisters an AccessibilityManager.AccessibilityStateChangeListener.

Inherited methods

From class java.lang.Object

Public methods

addAccessibilityStateChangeListener

boolean addAccessibilityStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat listener)

Registers an AccessibilityManager.AccessibilityStateChangeListener for changes in the global accessibility state of the system.

Parameters
manager AccessibilityManager: The accessibility manager.
listener AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat: The listener.
Returns
boolean True if successfully registered.

getEnabledAccessibilityServiceList

List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList (AccessibilityManager manager, 
                int feedbackTypeFlags)

Returns the AccessibilityServiceInfos of the enabled accessibility services for a given feedback type.

Parameters
manager AccessibilityManager: The accessibility manager.
feedbackTypeFlags int: The feedback type flags.
Returns
List<AccessibilityServiceInfo> An unmodifiable list with AccessibilityServiceInfos.

See also:

getInstalledAccessibilityServiceList

List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList (AccessibilityManager manager)

Returns the AccessibilityServiceInfos of the installed accessibility services.

Parameters
manager AccessibilityManager: The accessibility manager.
Returns
List<AccessibilityServiceInfo> An unmodifiable list with AccessibilityServiceInfos.

isTouchExplorationEnabled

boolean isTouchExplorationEnabled (AccessibilityManager manager)

Returns if the touch exploration in the system is enabled.

Parameters
manager AccessibilityManager: The accessibility manager.
Returns
boolean True if touch exploration is enabled, false otherwise.

removeAccessibilityStateChangeListener

boolean removeAccessibilityStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat listener)

Unregisters an AccessibilityManager.AccessibilityStateChangeListener.

Parameters
manager AccessibilityManager: The accessibility manager.
listener AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat: The listener.
Returns
boolean True if successfully unregistered.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.