Package org.robolectric.shadows
Class ShadowAccessibilityService.GestureDispatch
java.lang.Object
org.robolectric.shadows.ShadowAccessibilityService.GestureDispatch
- Enclosing class:
- ShadowAccessibilityService
Represents a gesture that has been dispatched through the accessibility service.
Gestures are dispatched by calling AccessibilityService.dispatchGesture(android.accessibilityservice.GestureDescription, android.accessibilityservice.AccessibilityService.GestureResultCallback, android.os.Handler)
.
-
Constructor Summary
ConstructorDescriptionGestureDispatch
(GestureDescription description, AccessibilityService.GestureResultCallback callback) -
Method Summary
Modifier and TypeMethodDescriptioncallback()
The callback that is to be invoked once the gesture has finished dispatching.The description of the gesture to be dispatched.
-
Constructor Details
-
GestureDispatch
public GestureDispatch(GestureDescription description, AccessibilityService.GestureResultCallback callback)
-
-
Method Details
-
description
The description of the gesture to be dispatched. Includes timestamps and the path. -
callback
The callback that is to be invoked once the gesture has finished dispatching.The shadow itself does not invoke this callback. You must manually invoke it to run it.
-