Package org.robolectric.shadows
Class ShadowAccessibilityManager
java.lang.Object
org.robolectric.shadows.ShadowAccessibilityManager
@Implements(android.view.accessibility.AccessibilityManager.class) public class ShadowAccessibilityManager extends Object
-
Constructor Summary
Constructors Constructor Description ShadowAccessibilityManager()
-
Method Summary
-
Constructor Details
-
ShadowAccessibilityManager
public ShadowAccessibilityManager()
-
-
Method Details
-
reset
-
getInstance
@HiddenApi @Implementation public static AccessibilityManager getInstance(Context context) throws Exception- Throws:
Exception
-
addAccessibilityStateChangeListener
@Implementation protected boolean addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener) -
addAccessibilityStateChangeListener
@Implementation(minSdk=26) protected void addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener, Handler handler) -
removeAccessibilityStateChangeListener
@Implementation protected boolean removeAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener listener) -
getAccessibilityServiceList
-
setAccessibilityServiceList
-
getEnabledAccessibilityServiceList
@Implementation protected List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackTypeFlags) -
setEnabledAccessibilityServiceList
public void setEnabledAccessibilityServiceList(List<AccessibilityServiceInfo> enabledAccessibilityServiceList) -
getInstalledAccessibilityServiceList
-
setInstalledAccessibilityServiceList
public void setInstalledAccessibilityServiceList(List<AccessibilityServiceInfo> installedAccessibilityServiceList) -
sendAccessibilityEvent
-
getSentAccessibilityEvents
Returns a list of all accessibility events that have been sent viasendAccessibilityEvent(android.view.accessibility.AccessibilityEvent)
. -
isEnabled
-
setEnabled
public void setEnabled(boolean enabled) -
isTouchExplorationEnabled
-
setTouchExplorationEnabled
public void setTouchExplorationEnabled(boolean touchExplorationEnabled) -
isAccessibilityButtonSupported
Returnstrue
by default, or the value specified viasetAccessibilityButtonSupported(boolean)
. -
performAccessibilityShortcut
-
setAccessibilityButtonSupported
public static void setAccessibilityButtonSupported(boolean supported)Sets that the system navigation area is supported accessibility button; controls the return value ofAccessibilityManager.isAccessibilityButtonSupported()
.
-