setSensorOverrideReadings method

Future<void> setSensorOverrideReadings(
  1. SensorType type,
  2. SensorReading reading
)

Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.

Implementation

Future<void> setSensorOverrideReadings(
    SensorType type, SensorReading reading) async {
  await _client.send('Emulation.setSensorOverrideReadings', {
    'type': type,
    'reading': reading,
  });
}