setTouchEmulationEnabled method
Toggles mouse event-based touch event emulation.
enabled
Whether the touch event emulation should be enabled.
configuration
Touch/gesture events configuration. Default: current platform.
Implementation
@Deprecated('This command is deprecated')
Future<void> setTouchEmulationEnabled(
bool enabled, {
@Enum(['mobile', 'desktop']) String? configuration,
}) async {
assert(
configuration == null ||
const ['mobile', 'desktop'].contains(configuration),
);
await _client.send('Page.setTouchEmulationEnabled', {
'enabled': enabled,
if (configuration != null) 'configuration': configuration,
});
}