protected class VideoView.AudioFocusHelper
extends java.lang.Object
implements android.media.AudioManager.OnAudioFocusChangeListener
VideoView
when enabled.| Modifier and Type | Field and Description |
|---|---|
protected int |
currentFocus |
protected boolean |
pausedForLoss |
protected boolean |
startRequested |
| Modifier | Constructor and Description |
|---|---|
protected |
AudioFocusHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abandonFocus()
Requests the system to drop the audio focus
|
void |
onAudioFocusChange(int focusChange) |
boolean |
requestFocus()
Requests to obtain the audio focus
|
protected boolean startRequested
protected boolean pausedForLoss
protected int currentFocus
public void onAudioFocusChange(int focusChange)
onAudioFocusChange in interface android.media.AudioManager.OnAudioFocusChangeListenerpublic boolean requestFocus()
public boolean abandonFocus()