switch Audio Output
abstract fun switchAudioOutput(audioOutputMode: Call.AudioOutputMode, completionHandler: CompletionHandler<Boolean>? = null)
Content copied to clipboard
Switch the audio output mode during a call. When a call is connected and if the application is already connected to a bluetooth device, then audio will be routed via the bluetooth device. If bluetooth is not connected, then the audio will be routed to device earpiece. To change this default behaviour, you can use this API with the desired AudioOutputMode
Since
2.7.0
Parameters
audio Output Mode
the audio output mode during a call.
completion Handler
callback that returns the result as true if operation was successful, false otherwise