public class TXZMediaFocusManager
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
INTENT_FOCUS_GAINED |
static java.lang.String |
INTENT_FOCUS_RELEASED |
限定符和类型 | 方法和说明 |
---|---|
static TXZMediaFocusManager |
getInstance() |
boolean |
isFocusGained()
获取当前是否有第三方正在占用音频焦点
|
void |
releaseFocus()
释放音频焦点
|
void |
requestFocus()
请求音频焦点,每次请求焦点最多持续8秒, 超时焦点会被释放
|
public static final java.lang.String INTENT_FOCUS_GAINED
public static final java.lang.String INTENT_FOCUS_RELEASED
public static TXZMediaFocusManager getInstance()
public void requestFocus()
public void releaseFocus()
public boolean isFocusGained()