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 java.lang.ObjectRepresents 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(android.accessibilityservice.GestureDescription description, android.accessibilityservice.AccessibilityService.GestureResultCallback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.accessibilityservice.AccessibilityService.GestureResultCallbackcallback()The callback that is to be invoked once the gesture has finished dispatching.android.accessibilityservice.GestureDescriptiondescription()The description of the gesture to be dispatched.
-
-
-
Method Detail
-
description
public android.accessibilityservice.GestureDescription description()
The description of the gesture to be dispatched. Includes timestamps and the path.
-
callback
public android.accessibilityservice.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.
-
-