getUsedAudioOutput

fun getUsedAudioOutput(): Int

Call this method to retrieve the used(active) audio output. it return the audio output by priority :

  • Bluetooth (if exist)

  • Headset (if connected)

  • Loudspeaker/Earpiece(depend on call type/configuration)

return STWAudioOutput the used audio output, UNKNOWN in the case of any eroor or when the call type is Live stream.