- l
- the listener to be notified of audio focus changes
- streamType
- the main audio stream type affected by the focus request
- durationHint
- use AudioManager.AudiofocusGainTransient to indicate this focus request is temporary, and focus will be abandonned shortly. Examples of transient requests are for the playback of driving directions, or notifications sounds. Use AudioManager.AudiofocusGainTransientMayDuck to indicate also that it's ok for the previous focus owner to keep playing if it ducks its audio output. Alternatively use AudioManager.AudiofocusGainTransientExclusive for a temporary request that benefits from the system not playing disruptive sounds like notifications, for usecases such as voice memo recording, or speech recognition. Use AudioManager.AudiofocusGain for a focus request of unknown duration such as the playback of a song or a video.
Documentation for this section has not yet been entered.
Request audio focus. Send a request to obtain the audio focus