Click or drag to resize

InputClientSynthesizeTapGestureAsync Method

Version 101.0.180
Synthesizes a tap gesture over a time period by issuing appropriate touch events.

Namespace:  CefSharp.DevTools.Input
Assembly:  CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax
public Task<DevToolsMethodResponse> SynthesizeTapGestureAsync(
	double x,
	double y,
	int? duration = null,
	int? tapCount = null,
	GestureSourceType? gestureSourceType = null
)

Parameters

x
Type: SystemDouble
X coordinate of the start of the gesture in CSS pixels.
y
Type: SystemDouble
Y coordinate of the start of the gesture in CSS pixels.
duration (Optional)
Type: SystemNullableInt32
Duration between touchdown and touchup events in ms (default: 50).
tapCount (Optional)
Type: SystemNullableInt32
Number of times to perform the tap (e.g. 2 for double tap, default: 1).
gestureSourceType (Optional)
Type: SystemNullableGestureSourceType
Which type of input events to be generated (default: 'default', which queries the platformfor the preferred input type).

Return Value

Type: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also