Android Guides | Samples

Android.Media.AudioFocus Enumeration

Syntax

public enum AudioFocus

Remarks

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.
GainTransientExclusive
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

The members of Android.Media.AudioFocus are listed below.

See Also: Enum

Public Fields

GainAudioFocus. Used to indicate a gain of audio focus, or a request of audio focus, of unknown duration.
GainTransientAudioFocus. Used 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.
GainTransientExclusiveAudioFocus.
GainTransientMayDuckAudioFocus. Used 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.
LossAudioFocus. Used to indicate a loss of audio focus of unknown duration.
LossTransientAudioFocus. Used to indicate a transient loss of audio focus.
LossTransientCanDuckAudioFocus. Used 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.