Click or drag to resize

InputClient.DispatchTouchEventAsync Method

Version 130.1.90
Dispatches a touch event to the page.

Namespace: CefSharp.DevTools.Input
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> DispatchTouchEventAsync(
	DispatchTouchEventType type,
	IList<TouchPoint> touchPoints,
	int? modifiers = null,
	double? timestamp = null
)

Parameters

type  DispatchTouchEventType
Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, whileTouchStart and TouchMove must contains at least one.
touchPoints  IList<TouchPoint>
Active touch points on the touch device. One event per any changed point (compared toprevious touch event in a sequence) is generated, emulating pressing/moving/releasing pointsone by one.
modifiers  Nullable<Int32>  (Optional)
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0).
timestamp  Nullable<Double>  (Optional)
Time at which the event occurred.

Return Value

Task<DevToolsMethodResponse>
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also