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.

Summary

Nested classes

interface AccessibilityManagerCompat.AccessibilityStateChangeListener

This interface was deprecated in API level 26.0.0. Use AccessibilityManager.AccessibilityStateChangeListener directly instead of this listener.  

class AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat

This class was deprecated in API level 24.2.0. 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 was deprecated in API level 26.0.0. Use 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 was deprecated in API level 26.0.0. Use getEnabledAccessibilityServiceList(int) directly.

static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(AccessibilityManager manager)

This method was deprecated in API level 26.0.0. Use getInstalledAccessibilityServiceList() directly.

static boolean isTouchExplorationEnabled(AccessibilityManager manager)

This method was deprecated in API level 26.0.0. Use isTouchExplorationEnabled() directly.

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

This method was deprecated in API level 26.0.0. Use removeAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener) directly.

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

Unregisters a AccessibilityManagerCompat.TouchExplorationStateChangeListener.

Inherited methods

From class java.lang.Object

Public methods

addAccessibilityStateChangeListener

added in version 24.2.0
boolean addAccessibilityStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.AccessibilityStateChangeListener listener)

This method was deprecated in API level 26.0.0.
Use 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

added in version 24.2.0
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

added in version 22.0.0
List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList (AccessibilityManager manager, 
                int feedbackTypeFlags)

This method was deprecated in API level 26.0.0.
Use getEnabledAccessibilityServiceList(int) directly.

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

added in version 22.0.0
List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList (AccessibilityManager manager)

This method was deprecated in API level 26.0.0.
Use getInstalledAccessibilityServiceList() directly.

Returns the AccessibilityServiceInfos of the installed accessibility services.

Parameters
manager AccessibilityManager: The accessibility manager.

Returns
List<AccessibilityServiceInfo> An unmodifiable list with AccessibilityServiceInfos.

isTouchExplorationEnabled

added in version 22.0.0
boolean isTouchExplorationEnabled (AccessibilityManager manager)

This method was deprecated in API level 26.0.0.
Use isTouchExplorationEnabled() directly.

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

added in version 24.2.0
boolean removeAccessibilityStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.AccessibilityStateChangeListener listener)

This method was deprecated in API level 26.0.0.
Use removeAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener) directly.

Unregisters an AccessibilityManager.AccessibilityStateChangeListener.

Parameters
manager AccessibilityManager: The accessibility manager.

listener AccessibilityManagerCompat.AccessibilityStateChangeListener: The listener.

Returns
boolean True if successfully unregistered.

removeTouchExplorationStateChangeListener

added in version 24.2.0
boolean removeTouchExplorationStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.TouchExplorationStateChangeListener listener)

Unregisters a AccessibilityManagerCompat.TouchExplorationStateChangeListener.

Parameters
manager AccessibilityManager

listener AccessibilityManagerCompat.TouchExplorationStateChangeListener: The listener.

Returns
boolean True if successfully unregistered.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

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.

Take a one-minute survey?
Help us improve Android tools and documentation.