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 callingAccessibilityService.dispatchGesture(android.accessibilityservice.GestureDescription, android.accessibilityservice.AccessibilityService.GestureResultCallback, android.os.Handler)
.
-
-
Constructor Summary
Constructors Constructor Description GestureDispatch(GestureDescription description, AccessibilityService.GestureResultCallback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
GestureDispatch
public GestureDispatch(GestureDescription description, AccessibilityService.GestureResultCallback callback)
-
-
Method Detail
-
description
public GestureDescription description()
The description of the gesture to be dispatched. Includes timestamps and the path.
-
callback
public AccessibilityService.GestureResultCallback 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.
-
-