AccessibilityManagerCompat

public final class AccessibilityManagerCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.accessibility.AccessibilityManagerCompat


Helper for accessing features in AccessibilityManager.

Summary

Nested classes

interface AccessibilityManagerCompat.AccessibilityStateChangeListener

This interface is deprecated. Use AccessibilityManager.AccessibilityStateChangeListener directly instead of this listener.  

class AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat

This class is deprecated. Use AccessibilityManager.AccessibilityStateChangeListener directly instead of this listener.  

interface AccessibilityManagerCompat.TouchExplorationStateChangeListener

Listener for the system touch exploration state. 

Public methods

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

This method is deprecated. Use AccessibilityManager.addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener) directly.

static boolean addTouchExplorationStateChangeListener(AccessibilityManager manager, AccessibilityManagerCompat.TouchExplorationStateChangeListener listener)

Registers a AccessibilityManagerCompat.TouchExplorationStateChangeListener for changes in the global touch exploration state of the system.

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

This method is deprecated. Use AccessibilityManager.getEnabledAccessibilityServiceList(int) directly.

static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(AccessibilityManager manager)

This method is deprecated. Use AccessibilityManager.getInstalledAccessibilityServiceList() directly.

static boolean isTouchExplorationEnabled(AccessibilityManager manager)

This method is deprecated. Use AccessibilityManager.isTouchExplorationEnabled() directly.

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

This method is deprecated. Use AccessibilityManager.removeAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener) directly.

static boolean removeTouchExplorationStateChangeListener(AccessibilityManager manager, AccessibilityManagerCompat.TouchExplorationStateChangeListener listener)

Unregisters a AccessibilityManagerCompat.TouchExplorationStateChangeListener.

Inherited methods

Public methods

addAccessibilityStateChangeListener

public static boolean addAccessibilityStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.AccessibilityStateChangeListener listener)

This method is deprecated.
Use AccessibilityManager.addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener) directly.

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

Parameters
manager AccessibilityManager: The accessibility manager.

listener AccessibilityManagerCompat.AccessibilityStateChangeListener: The listener.

Returns
boolean True if successfully registered.

addTouchExplorationStateChangeListener

public static boolean addTouchExplorationStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.TouchExplorationStateChangeListener listener)

Registers a AccessibilityManagerCompat.TouchExplorationStateChangeListener for changes in the global touch exploration state of the system.

Parameters
manager AccessibilityManager

listener AccessibilityManagerCompat.TouchExplorationStateChangeListener: The listener.

Returns
boolean True if successfully registered.

getEnabledAccessibilityServiceList

public static List<