Click or drag to resize

EmulationClientSetSensorOverrideEnabledAsync Method

Version 130.1.90
Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead.

Namespace: CefSharp.DevTools.Emulation
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> SetSensorOverrideEnabledAsync(
	bool enabled,
	SensorType type,
	SensorMetadata metadata = null
)

Parameters

enabled  Boolean
enabled
type  SensorType
type
metadata  SensorMetadata  (Optional)
metadata

Return Value

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