InputClientDispatchTouchEventAsync Method |
Version 91.1.160
Dispatches a touch event to the page.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 91.1.160.0 (91.1.160.0)
Syntax public Task<DevToolsMethodResponse> DispatchTouchEventAsync(
string type,
IList<TouchPoint> touchPoints,
Nullable<int> modifiers = null,
Nullable<long> timestamp = null
)
public:
Task<DevToolsMethodResponse^>^ DispatchTouchEventAsync(
String^ type,
IList<TouchPoint^>^ touchPoints,
Nullable<int> modifiers = nullptr,
Nullable<long long> timestamp = nullptr
)
Parameters
- type
- Type: SystemString
Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, whileTouchStart and TouchMove must contains at least one. - touchPoints
- Type: System.Collections.GenericIListTouchPoint
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 (Optional)
- Type: SystemNullableInt32
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0). - timestamp (Optional)
- Type: SystemNullableInt64
Time at which the event occurred.
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also