@Implements(value=android.view.accessibility.AccessibilityManager.class) public class ShadowAccessibilityManager extends java.lang.Object
Constructor and Description |
---|
ShadowAccessibilityManager() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener listener) |
protected java.util.List<android.content.pm.ServiceInfo> |
getAccessibilityServiceList() |
protected java.util.List<android.accessibilityservice.AccessibilityServiceInfo> |
getEnabledAccessibilityServiceList(int feedbackTypeFlags) |
protected java.util.List<android.accessibilityservice.AccessibilityServiceInfo> |
getInstalledAccessibilityServiceList() |
static android.view.accessibility.AccessibilityManager |
getInstance(android.content.Context context) |
protected static boolean |
isAccessibilityButtonSupported()
Returns
true by default, or the value specified via setAccessibilityButtonSupported(boolean) |
protected boolean |
isEnabled() |
protected boolean |
isTouchExplorationEnabled() |
protected boolean |
removeAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener listener) |
static void |
reset() |
static void |
setAccessibilityButtonSupported(boolean supported)
Sets that the system navigation area is supported accessibility button; controls the return value of
AccessibilityManager.isAccessibilityButtonSupported() . |
void |
setAccessibilityServiceList(java.util.List<android.content.pm.ServiceInfo> accessibilityServiceList) |
void |
setEnabled(boolean enabled) |
void |
setEnabledAccessibilityServiceList(java.util.List<android.accessibilityservice.AccessibilityServiceInfo> enabledAccessibilityServiceList) |
void |
setInstalledAccessibilityServiceList(java.util.List<android.accessibilityservice.AccessibilityServiceInfo> installedAccessibilityServiceList) |
void |
setTouchExplorationEnabled(boolean touchExplorationEnabled) |
@Resetter public static void reset()
@HiddenApi @Implementation public static android.view.accessibility.AccessibilityManager getInstance(android.content.Context context) throws java.lang.Exception
java.lang.Exception
@Implementation protected boolean addAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener listener)
@Implementation protected boolean removeAccessibilityStateChangeListener(android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener listener)
@Implementation protected java.util.List<android.content.pm.ServiceInfo> getAccessibilityServiceList()
public void setAccessibilityServiceList(java.util.List<android.content.pm.ServiceInfo> accessibilityServiceList)
@Implementation protected java.util.List<android.accessibilityservice.AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackTypeFlags)
public void setEnabledAccessibilityServiceList(java.util.List<android.accessibilityservice.AccessibilityServiceInfo> enabledAccessibilityServiceList)
@Implementation protected java.util.List<android.accessibilityservice.AccessibilityServiceInfo> getInstalledAccessibilityServiceList()
public void setInstalledAccessibilityServiceList(java.util.List<android.accessibilityservice.AccessibilityServiceInfo> installedAccessibilityServiceList)
@Implementation protected boolean isEnabled()
public void setEnabled(boolean enabled)
@Implementation protected boolean isTouchExplorationEnabled()
public void setTouchExplorationEnabled(boolean touchExplorationEnabled)
@Implementation(minSdk=27) protected static boolean isAccessibilityButtonSupported()
Returns true
by default, or the value specified via setAccessibilityButtonSupported(boolean)
public static void setAccessibilityButtonSupported(boolean supported)
Sets that the system navigation area is supported accessibility button; controls the return value of AccessibilityManager.isAccessibilityButtonSupported()
.