Duck
1. 类图
2. 流程图
3. 代码分析
【1】PlayerFocusEnforcer声明
从上图中可知,MediaFocusControl和PlaybackActivityMonitor都实现了接口PlayerFocusEnforcer。
public interface PlayerFocusEnforcer {
/**
* Ducks the players associated with the "loser" focus owner (i.e. same UID). Returns true if
* at least one active player was found and ducked, false otherwise.
* @param winner
* @param loser
* @return
*/
public boolean duckPlayers(F