setIdleOverride method

Future<void> setIdleOverride(
  1. bool isUserActive,
  2. bool isScreenUnlocked
)

Overrides the Idle state. isUserActive Mock isUserActive isScreenUnlocked Mock isScreenUnlocked

Implementation

Future<void> setIdleOverride(bool isUserActive, bool isScreenUnlocked) async {
  await _client.send('Emulation.setIdleOverride', {
    'isUserActive': isUserActive,
    'isScreenUnlocked': isScreenUnlocked,
  });
}