Most visited

Recently visited

AccessibilityManagerCompat

public final class AccessibilityManagerCompat
extends Object

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


Helper用于访问以向后兼容的方式在API级别4之后引入的 AccessibilityManager功能。

Summary

Nested classes

class AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat

监听器的可访问性状态。

Public methods

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

注册一个 AccessibilityManager.AccessibilityStateChangeListener用于更改系统的全局可访问性状态。

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

针对给定的反馈类型返回启用的辅助功能服务的 AccessibilityServiceInfo

static List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(AccessibilityManager manager)

返回安装的可访问性服务的 AccessibilityServiceInfo

static boolean isTouchExplorationEnabled(AccessibilityManager manager)

如果系统中的触摸浏览已启用,则返回。

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

取消注册 AccessibilityManager.AccessibilityStateChangeListener

Inherited methods

From class java.lang.Object

Public methods

addAccessibilityStateChangeListener

boolean addAccessibilityStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat listener)

注册一个 AccessibilityManager.AccessibilityStateChangeListener以更改系统的全局可访问状态。

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)

针对给定的反馈类型返回启用的辅助功能服务的 AccessibilityServiceInfo

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

也可以看看:

getInstalledAccessibilityServiceList

List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList (AccessibilityManager manager)

返回安装的可访问性服务的 AccessibilityServiceInfo

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

isTouchExplorationEnabled

boolean isTouchExplorationEnabled (AccessibilityManager manager)

如果系统中的触摸浏览已启用,则返回。

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

removeAccessibilityStateChangeListener

boolean removeAccessibilityStateChangeListener (AccessibilityManager manager, 
                AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat listener)

取消注册 AccessibilityManager.AccessibilityStateChangeListener

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

Hooray!