setPressureSourceOverrideEnabled method
Future<void>
setPressureSourceOverrideEnabled(
- bool enabled,
- PressureSource source, {
- PressureMetadata? metadata,
Overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data.
Implementation
Future<void> setPressureSourceOverrideEnabled(
bool enabled, PressureSource source,
{PressureMetadata? metadata}) async {
await _client.send('Emulation.setPressureSourceOverrideEnabled', {
'enabled': enabled,
'source': source,
if (metadata != null) 'metadata': metadata,
});
}