Why some api have handler as a method parameter? What are the possible use cases? Specifically I need someone to explain why we need a handler in the dispatchgesture method. I am trying to perform drag operation on behalf of user using this dispatchgesture method.
boolean dispatchGesture (GestureDescription gesture,
AccessibilityService.GestureResultCallback callback,
Handler handler)