Share via


AudioManager.AudiofocusGainTransient 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 gain or request of audio focus, anticipated to last a short amount of time.

[Android.Runtime.Register("AUDIOFOCUS_GAIN_TRANSIENT")]
[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 AudiofocusGainTransient = 2;
[<Android.Runtime.Register("AUDIOFOCUS_GAIN_TRANSIENT")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.AudioFocus enum directly instead of this field.", true)>]
val mutable AudiofocusGainTransient : Android.Media.AudioFocus

Field Value

Value = 2
Attributes

Remarks

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.

Java documentation for android.media.AudioManager.AUDIOFOCUS_GAIN_TRANSIENT.

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)>