public final class AccessibilityManagerCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.view.accessibility.AccessibilityManagerCompat |
Helper用于访问以向后兼容的方式在API级别4之后引入的 AccessibilityManager
功能。
Nested classes |
|
---|---|
class |
AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat 监听器的可访问性状态。 |
Public methods |
|
---|---|
static boolean |
addAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat listener) 注册一个 |
static List<AccessibilityServiceInfo> |
getEnabledAccessibilityServiceList(AccessibilityManager manager, int feedbackTypeFlags) 针对给定的反馈类型返回启用的辅助功能服务的 |
static List<AccessibilityServiceInfo> |
getInstalledAccessibilityServiceList(AccessibilityManager manager) 返回安装的可访问性服务的 |
static boolean |
isTouchExplorationEnabled(AccessibilityManager manager) 如果系统中的触摸浏览已启用,则返回。 |
static boolean |
removeAccessibilityStateChangeListener(AccessibilityManager manager, AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat listener) 取消注册 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
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. |
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 AccessibilityServiceInfo s. |
List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList (AccessibilityManager manager)
返回安装的可访问性服务的 AccessibilityServiceInfo
。
Parameters | |
---|---|
manager |
AccessibilityManager : The accessibility manager. |
Returns | |
---|---|
List<AccessibilityServiceInfo> |
An unmodifiable list with AccessibilityServiceInfo s. |
boolean isTouchExplorationEnabled (AccessibilityManager manager)
如果系统中的触摸浏览已启用,则返回。
Parameters | |
---|---|
manager |
AccessibilityManager : The accessibility manager. |
Returns | |
---|---|
boolean |
True if touch exploration is enabled, false otherwise. |
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. |