audioOutput property

AudioOutput get audioOutput

Returns the currently selected audio output type.

Returns

Implementation

static AudioOutput get audioOutput {
  final OperationResult result = staticMethod(
    'SoundService',
    'getAudioOutput',
  );
  return AudioOutputExtension.fromId(result['result']);
}
set audioOutput (AudioOutput audioOutput)

Select the audio output type.

Changing the audio output may require special permissions on Android when using Bluetooth as phone call. See AudioOutput.bluetoothAsPhoneCall for more information.

Parameters

Implementation

static set audioOutput(AudioOutput audioOutput) {
  staticMethod('SoundService', 'setAudioOutput', args: audioOutput.id);
}