Class ShadowAccessibilityService.GestureDispatch

  • Enclosing class:
    ShadowAccessibilityService

    public static final class ShadowAccessibilityService.GestureDispatch
    extends java.lang.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​(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.GestureResultCallback callback()
      The callback that is to be invoked once the gesture has finished dispatching.
      android.accessibilityservice.GestureDescription description()
      The description of the gesture to be dispatched.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GestureDispatch

        public GestureDispatch​(android.accessibilityservice.GestureDescription description,
                               android.accessibilityservice.AccessibilityService.GestureResultCallback callback)
    • 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.