Click or drag to resize

EmulationClientSetTouchEmulationEnabledAsync Method

Version 103.0.120
Enables touch on platforms which do not support them.

Namespace:  CefSharp.DevTools.Emulation
Assembly:  CefSharp (in CefSharp.dll) Version: 103.0.120.0 (103.0.120.0)
Syntax
public Task<DevToolsMethodResponse> SetTouchEmulationEnabledAsync(
	bool enabled,
	int? maxTouchPoints = null
)

Parameters

enabled
Type: SystemBoolean
Whether the touch event emulation should be enabled.
maxTouchPoints (Optional)
Type: SystemNullableInt32
Maximum touch points supported. Defaults to one.

Return Value

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