warningsVolume property
Returns the current warnings volume.
Returns
- Integer volume in the range 0..10.
Also see:
- voiceVolume - Get or set the voice (TTS) volume.
Implementation
static int get warningsVolume {
final OperationResult result = staticMethod(
'SoundService',
'getWarningsVolume',
);
return result['result'];
}
Set the warnings volume (0..10).
If a system interruption is active (e.g., a phone call), the volume change may be deferred until the interruption ends.
Parameters
volume: Integer volume in range 0..10.
Also see:
- voiceVolume - Get or set the voice (TTS) volume.
Implementation
static set warningsVolume(int volume) {
staticMethod('SoundService', 'setWarningsVolume', args: volume);
}