EmulationClientSetTouchEmulationEnabledAsync Method |
Version 130.1.90
Enables touch on platforms which do not support them.
Namespace: CefSharp.DevTools.EmulationAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> SetTouchEmulationEnabledAsync(
bool enabled,
int? maxTouchPoints = null
)
public:
Task<DevToolsMethodResponse^>^ SetTouchEmulationEnabledAsync(
bool enabled,
Nullable<int> maxTouchPoints = nullptr
)
Parameters
- enabled Boolean
- Whether the touch event emulation should be enabled.
- maxTouchPoints NullableInt32 (Optional)
- Maximum touch points supported. Defaults to one.
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also