Package org.robolectric.shadows
Class ShadowAccessibilityService.GestureDispatch
java.lang.Object
org.robolectric.shadows.ShadowAccessibilityService.GestureDispatch
- Enclosing class:
- ShadowAccessibilityService
public static final class ShadowAccessibilityService.GestureDispatch extends Object
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
Constructors Constructor Description GestureDispatch(GestureDescription description, AccessibilityService.GestureResultCallback callback)
-
Method Summary
Modifier and Type Method Description AccessibilityService.GestureResultCallback
callback()
The callback that is to be invoked once the gesture has finished dispatching.GestureDescription
description()
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.
-