Android.Media.AudioFocus Enumeration
Enumerates values returned by several types and taken as a parameter of the Android.Media.AudioManager.AudioFocusChangeEventArgs..ctor, AudioManager.IOnAudioFocusChangeListener.OnAudioFocusChange, and AudioManager.RequestAudioFocus members.

Syntax

public enum AudioFocus

Remarks

Enumerates values returned by the following: and taken as a parameter of the Android.Media.AudioManager.AudioFocusChangeEventArgs..ctor, AudioManager.IOnAudioFocusChangeListener.OnAudioFocusChange, and AudioManager.RequestAudioFocus members.

Members

Member NameDescription
GainUsed to indicate a gain of audio focus, or a request of audio focus, of unknown duration.
GainTransientUsed to indicate a temporary gain or request of audio focus, anticipated to last a short amount of time. Examples of temporary changes are the playback of driving directions, or an event notification.
GainTransientExclusiveDocumentation for this section has not yet been entered.
GainTransientMayDuckUsed to indicate a temporary request of audio focus, anticipated to last a short amount of time, and where it is acceptable for other audio applications to keep playing after having lowered their output level (also referred to as "ducking"). Examples of temporary changes are the playback of driving directions where playback of music in the background is acceptable.
LossUsed to indicate a loss of audio focus of unknown duration.
LossTransientUsed to indicate a transient loss of audio focus.
LossTransientCanDuckUsed to indicate a transient loss of audio focus where the loser of the audio focus can lower its output volume if it wants to continue playing (also referred to as "ducking"), as the new focus owner doesn't require others to be silent.

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0