Register now for Android Dev Summit 2019!

AccessibilityManagerCompat

class AccessibilityManagerCompat
kotlin.Any
   ↳ androidx.core.view.accessibility.AccessibilityManagerCompat

Helper for accessing features in AccessibilityManager.

Summary

Nested classes

abstract

Listener for the accessibility state.

abstract

Listener for the accessibility state.

abstract

Listener for the system touch exploration state.

Public methods

static Boolean

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

static Boolean

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

static MutableList<AccessibilityServiceInfo!>!

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

static MutableList<AccessibilityServiceInfo!>!

Returns the AccessibilityServiceInfos of the installed accessibility services.

static Boolean

Returns if the touch exploration in the system is enabled.

static Boolean

Unregisters an AccessibilityManager.AccessibilityStateChangeListener.

static Boolean

Unregisters a TouchExplorationStateChangeListener.

Public methods

addAccessibilityStateChangeListener

static fun addAccessibilityStateChangeListener(manager: AccessibilityManager!, listener: AccessibilityManagerCompat.AccessibilityStateChangeListener!): Boolean

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 AccessibilityManager!: The listener.
Return
Boolean: True if successfully registered.

addTouchExplorationStateChangeListener

static fun addTouchExplorationStateChangeListener(manager: AccessibilityManager!, listener: AccessibilityManagerCompat.TouchExplorationStateChangeListener!): Boolean

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

Parameters
listener AccessibilityManager!: The listener.
Return
Boolean: True if successfully registered.

getEnabledAccessibilityServiceList

static fun getEnabledAccessibilityServiceList(manager: AccessibilityManager!, feedbackTypeFlags: Int): MutableList<AccessibilityServiceInfo!>!

Deprecated: Use AccessibilityManager#getEnabledAccessibilityServiceList(int) directly.

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

Parameters
manager AccessibilityManager!: The accessibility manager.
feedbackTypeFlags AccessibilityManager!: The feedback type flags.
Return
MutableList<AccessibilityServiceInfo!>!: An unmodifiable list with AccessibilityServiceInfos.

getInstalledAccessibilityServiceList

static fun getInstalledAccessibilityServiceList(manager: AccessibilityManager!): MutableList<AccessibilityServiceInfo!>!

Deprecated: Use AccessibilityManager#getInstalledAccessibilityServiceList() directly.

Returns the AccessibilityServiceInfos of the installed accessibility services.

Parameters
manager AccessibilityManager!: The accessibility manager.
Return
MutableList<AccessibilityServiceInfo!>!: An unmodifiable list with AccessibilityServiceInfos.

isTouchExplorationEnabled

static fun isTouchExplorationEnabled(manager: AccessibilityManager!): Boolean

Deprecated: Use AccessibilityManager#isTouchExplorationEnabled() directly.

Returns if the touch exploration in the system is enabled.

Parameters
manager AccessibilityManager!: The accessibility manager.
Return
Boolean: True if touch exploration is enabled, false otherwise.

removeAccessibilityStateChangeListener

static fun removeAccessibilityStateChangeListener(manager: AccessibilityManager!, listener: AccessibilityManagerCompat.AccessibilityStateChangeListener!): Boolean

Deprecated: Use AccessibilityManager#removeAccessibilityStateChangeListener( * AccessibilityManager.AccessibilityStateChangeListener) directly.

Unregisters an AccessibilityManager.AccessibilityStateChangeListener.

Parameters
manager AccessibilityManager!: The accessibility manager.
listener AccessibilityManager!: The listener.
Return
Boolean: True if successfully unregistered.

removeTouchExplorationStateChangeListener

static fun removeTouchExplorationStateChangeListener(manager: AccessibilityManager!, listener: AccessibilityManagerCompat.TouchExplorationStateChangeListener!): Boolean

Unregisters a TouchExplorationStateChangeListener.

Parameters
listener AccessibilityManager!: The listener.
Return
Boolean: True if successfully unregistered.