Added in API level 31
AudioManager.OnModeChangedListener
public
static
interface
AudioManager.OnModeChangedListener
android.media.AudioManager.OnModeChangedListener |
Interface definition of a callback that is notified when the audio mode changes
Summary
Public methods | |
---|---|
abstract
void
|
onModeChanged(int mode)
Called on the listener to indicate that the audio mode has changed |
Public methods
onModeChanged
Added in API level 31
public abstract void onModeChanged (int mode)
Called on the listener to indicate that the audio mode has changed
Parameters | |
---|---|
mode |
int : The current audio mode
Value is AudioManager.MODE_NORMAL , AudioManager.MODE_RINGTONE , AudioManager.MODE_IN_CALL , AudioManager.MODE_IN_COMMUNICATION , AudioManager.MODE_CALL_SCREENING , AudioManager.MODE_CALL_REDIRECT , or AudioManager.MODE_COMMUNICATION_REDIRECT |