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.EmulationAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> SetSensorOverrideEnabledAsync(
bool enabled,
SensorType type,
SensorMetadata metadata = null
)
public:
Task<DevToolsMethodResponse^>^ SetSensorOverrideEnabledAsync(
bool enabled,
SensorType type,
SensorMetadata^ metadata = nullptr
)
Parameters
- enabled Boolean
- enabled
- type SensorType
- type
- metadata SensorMetadata (Optional)
- metadata
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also