switch Audio Output
Switches the audio output device (speaker, Bluetooth, headphones).
This function routes audio playback to the specified output device. On Android, it uses AudioManager to set the communication device.
Example Usage
val options = SwitchAudioOutputOptions(
audioOutputPreference = "audio_output_123",
parameters = myParameters
)
switchAudioOutput(options)Content copied to clipboard
Parameters
options
The options containing the audio output preference and parameters