switchAudioOutput

abstract fun switchAudioOutput(audioOutputMode: Call.AudioOutputMode, completionHandler: CompletionHandler<Boolean>? = null)

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

audioOutputMode

the audio output mode during a call.

completionHandler

callback that returns the result as true if operation was successful, false otherwise