Android Reference
AudioManager.OnAudioFocusChangeListener
android.media
Interface AudioManager.OnAudioFocusChangeListener
-
-
Method Summary
Methods
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.
|
-
-
Method Detail
-
onAudioFocusChange
void onAudioFocusChange(int focusChange)
Called on the listener to notify it the audio focus for this listener has been changed.
The focusChange value indicates whether the focus was gained,
whether the focus was lost, and whether that loss is transient, or whether the new focus
holder will hold it for an unknown amount of time.
When losing focus, listeners can use the focus change information to decide what
behavior to adopt when losing focus. A music player could for instance elect to lower
the volume of its music stream (duck) for transient focus losses, and pause otherwise.
- Parameters:
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
.
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 287 / 159530225. Delta: 0.04216 с