public static interface AudioManager.OnAudioFocusChangeListener
Modifier and Type | Method and Description |
---|---|
void |
onAudioFocusChange(int focusChange)
Called on the listener to notify it the audio focus for this listener has been changed.
|
void onAudioFocusChange(int focusChange)
focusChange
- the type of focus change, one of AudioManager.AUDIOFOCUS_GAIN
,
AudioManager.AUDIOFOCUS_LOSS
, AudioManager.AUDIOFOCUS_LOSS_TRANSIENT
and AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK
.