Partager via


AudioManager.AudiofocusGainTransientExclusive Field

Definition

Caution

This constant will be removed in the future version. Use Android.Media.AudioFocus enum directly instead of this field.

Used to indicate a temporary request of audio focus, anticipated to last a short amount of time, during which no other applications, or system components, should play anything.

[Android.Runtime.Register("AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Media.AudioFocus enum directly instead of this field.", true)]
public const Android.Media.AudioFocus AudiofocusGainTransientExclusive = 4;
[<Android.Runtime.Register("AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.AudioFocus enum directly instead of this field.", true)>]
val mutable AudiofocusGainTransientExclusive : Android.Media.AudioFocus

Field Value

Value = 4
Attributes

Remarks

Used to indicate a temporary request of audio focus, anticipated to last a short amount of time, during which no other applications, or system components, should play anything. Examples of exclusive and transient audio focus requests are voice memo recording and speech recognition, during which the system shouldn't play any notifications, and media playback should have paused.

Java documentation for android.media.AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

  • <xref:Android.Media.AudioManager.RequestAudioFocus(.IOnAudioFocusChangeListener%2c+Android.Media.Stream%2c+Android.Media.Stream)>