@Implements(android.view.accessibility.AccessibilityManager.class) public class ShadowAccessibilityManager extends Object
Constructor | 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 void sendAccessibilityEvent(AccessibilityEvent event)
public com.google.common.collect.ImmutableList<AccessibilityEvent> getSentAccessibilityEvents()
sendAccessibilityEvent(android.view.accessibility.AccessibilityEvent)
.@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()
true
by default, or the value specified via setAccessibilityButtonSupported(boolean)
.@HiddenApi @Implementation(minSdk=26) protected void performAccessibilityShortcut()
public static void setAccessibilityButtonSupported(boolean supported)
AccessibilityManager.isAccessibilityButtonSupported()
.