InputClientSynthesizeTapGestureAsync Method |
Version 90.6.50
Synthesizes a tap gesture over a time period by issuing appropriate touch events.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 90.6.50.0 (90.6.50.0)
Syntax public Task<DevToolsMethodResponse> SynthesizeTapGestureAsync(
long x,
long y,
Nullable<int> duration = null,
Nullable<int> tapCount = null,
Nullable<GestureSourceType> gestureSourceType = null
)
public:
Task<DevToolsMethodResponse^>^ SynthesizeTapGestureAsync(
long long x,
long long y,
Nullable<int> duration = nullptr,
Nullable<int> tapCount = nullptr,
Nullable<GestureSourceType> gestureSourceType = nullptr
)
Parameters
- x
- Type: SystemInt64
X coordinate of the start of the gesture in CSS pixels. - y
- Type: SystemInt64
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:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also