@Implements(value=android.view.accessibility.AccessibilityManager.class) public class ShadowAccessibilityManager extends Object
Constructor and Description |
---|
ShadowAccessibilityManager() |
@Resetter public static void reset()
@HiddenApi @Implementation public static AccessibilityManager getInstance(Context context) throws Exception
Exception
@Implementation protected boolean addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener)
@Implementation(minSdk=26) protected void addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener, Handler handler)
@Implementation protected boolean removeAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener)
@Implementation protected List<ServiceInfo> getAccessibilityServiceList()
public void setAccessibilityServiceList(List<ServiceInfo> accessibilityServiceList)
@Implementation protected List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackTypeFlags)
public void setEnabledAccessibilityServiceList(List<AccessibilityServiceInfo> enabledAccessibilityServiceList)
@Implementation protected List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList()
public void setInstalledAccessibilityServiceList(List<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)
@HiddenApi @Implementation(minSdk=26) protected void performAccessibilityShortcut()
public static void setAccessibilityButtonSupported(boolean supported)
Sets that the system navigation area is supported accessibility button; controls the return value of AccessibilityManager.isAccessibilityButtonSupported()
.