InputClientSynthesizeTapGestureAsync Method |
Version 130.1.90
Synthesizes a tap gesture over a time period by issuing appropriate touch events.
Namespace: CefSharp.DevTools.InputAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> SynthesizeTapGestureAsync(
double x,
double y,
int? duration = null,
int? tapCount = null,
GestureSourceType? gestureSourceType = null
)
public:
Task<DevToolsMethodResponse^>^ SynthesizeTapGestureAsync(
double x,
double y,
Nullable<int> duration = nullptr,
Nullable<int> tapCount = nullptr,
Nullable<GestureSourceType> gestureSourceType = nullptr
)
Parameters
- x Double
- X coordinate of the start of the gesture in CSS pixels.
- y Double
- Y coordinate of the start of the gesture in CSS pixels.
- duration NullableInt32 (Optional)
- Duration between touchdown and touchup events in ms (default: 50).
- tapCount NullableInt32 (Optional)
- Number of times to perform the tap (e.g. 2 for double tap, default: 1).
- gestureSourceType NullableGestureSourceType (Optional)
- Which type of input events to be generated (default: 'default', which queries the platformfor the preferred input type).
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also