audioOutput property
Returns the currently selected audio output type.
Returns
- The active AudioOutput value.
Implementation
static AudioOutput get audioOutput {
final OperationResult result = staticMethod(
'SoundService',
'getAudioOutput',
);
return AudioOutputExtension.fromId(result['result']);
}
Select the audio output type.
Parameters
audioOutput: Desired audio output (see AudioOutput).
Implementation
static set audioOutput(AudioOutput audioOutput) {
staticMethod('SoundService', 'setAudioOutput', args: audioOutput.id);
}