setAudioMode

fun setAudioMode(audioMode: Int)

Change Audio Mode manually. The most common usecase would be toggle between in-call volume/media volume

Parameters

for

in call volume AudioManager.MODE_IN_COMMUNICATION media volume AudioManager.MODE_NORMAL For more check this out https://developer.android.com/reference/android/media/AudioManager#MODE_IN_COMMUNICATION