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 one of the following: |