@Implements(android.accessibilityservice.AccessibilityService.class) public class ShadowAccessibilityService extends ShadowService
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ShadowAccessibilityService.GestureDispatch |
Represents a gesture that has been dispatched through the accessibility service.
|
| Constructor | Description |
|---|---|
ShadowAccessibilityService() |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
dispatchGesture(GestureDescription gesture,
AccessibilityService.GestureResultCallback callback,
Handler handler) |
|
List<ShadowAccessibilityService.GestureDispatch> |
getGesturesDispatched() |
Returns a list of gestures that have been dispatched.
|
List<Integer> |
getGlobalActionsPerformed() |
|
protected List<AccessibilityWindowInfo> |
getWindows() |
Returns a representation of interactive windows shown on the device screen.
|
protected boolean |
performGlobalAction(int action) |
|
void |
setCanDispatchGestures(boolean canDispatchGestures) |
Sets whether the service is currently able to dispatch gestures.
|
void |
setWindows(List<AccessibilityWindowInfo> windowList) |
Sets the list of interactive windows shown on the device screen as reported by
getWindows() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearBroadcastIntents, clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getBroadcastIntents, getBroadcastIntentsForUser, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemServicegetLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult@Implementation protected final boolean performGlobalAction(int action)
@Implementation(minSdk=21) protected List<AccessibilityWindowInfo> getWindows()
#setWindows(List) . Returns an empty List if not
set.@Implementation(minSdk=24) protected boolean dispatchGesture(GestureDescription gesture, AccessibilityService.GestureResultCallback callback, Handler handler)
public void setWindows(List<AccessibilityWindowInfo> windowList)
getWindows()public List<ShadowAccessibilityService.GestureDispatch> getGesturesDispatched()
AccessibilityService.dispatchGesture(android.accessibilityservice.GestureDescription, android.accessibilityservice.AccessibilityService.GestureResultCallback, android.os.Handler).public void setCanDispatchGestures(boolean canDispatchGestures)
false, AccessibilityService.dispatchGesture(android.accessibilityservice.GestureDescription, android.accessibilityservice.AccessibilityService.GestureResultCallback, android.os.Handler) will return false.