Share via


AccessibilityService.DispatchGesture Method

Definition

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

callback
AccessibilityService.GestureResultCallback

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

Java documentation for android.accessibilityservice.AccessibilityService.dispatchGesture(android.accessibilityservice.GestureDescription, android.accessibilityservice.GestureResultCallback, android.os.Handler).

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.

Applies to