AccessibilityService.DispatchGesture Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Dispatch a gesture to the touch screen.
[Android.Runtime.Register("dispatchGesture", "(Landroid/accessibilityservice/GestureDescription;Landroid/accessibilityservice/AccessibilityService$GestureResultCallback;Landroid/os/Handler;)Z", "", ApiSince=24)]
public bool DispatchGesture (Android.AccessibilityServices.GestureDescription gesture, Android.AccessibilityServices.AccessibilityService.GestureResultCallback? callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("dispatchGesture", "(Landroid/accessibilityservice/GestureDescription;Landroid/accessibilityservice/AccessibilityService$GestureResultCallback;Landroid/os/Handler;)Z", "", ApiSince=24)>]
member this.DispatchGesture : Android.AccessibilityServices.GestureDescription * Android.AccessibilityServices.AccessibilityService.GestureResultCallback * Android.OS.Handler -> bool
Parameters
- gesture
- GestureDescription
The gesture to dispatch
The object to call back when the status of the gesture is known. If
null
, no status is reported.
- handler
- Handler
The handler on which to call back the callback
object. If
null
, the object is called back on the service's main thread.
Returns
true
if the gesture is dispatched, false
if not.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.