AndroidAudioFocus enum

Inheritance
Available extensions

Values

none → const AndroidAudioFocus

Used to indicate no audio focus has been gained or lost, or requested.

gain → const AndroidAudioFocus

Used to indicate a gain of audio focus, or a request of audio focus, of unknown duration.

@see OnAudioFocusChangeListener#onAudioFocusChange(int) @see #requestAudioFocus(OnAudioFocusChangeListener, int, int)

gainTransient → const AndroidAudioFocus

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.

@see OnAudioFocusChangeListener#onAudioFocusChange(int) @see #requestAudioFocus(OnAudioFocusChangeListener, int, int)

gainTransientMayDuck → const AndroidAudioFocus

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.

@see OnAudioFocusChangeListener#onAudioFocusChange(int) @see #requestAudioFocus(OnAudioFocusChangeListener, int, int)

gainTransientExclusive → const AndroidAudioFocus

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.

@see #requestAudioFocus(OnAudioFocusChangeListener, int, int)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<AndroidAudioFocus>
A constant List of the values in this enum, in order of their declaration.