AudioFocus enum

Control the focus mode.

Inheritance

Constructors

AudioFocus()
const

Values

requestFocus → const AudioFocus
requestFocusAndKeepOthers → const AudioFocus

request focus and allow other audio to continue playing at their current volume.

requestFocusAndStopOthers → const AudioFocus

request focus and stop other audio playing

requestFocusAndDuckOthers → const AudioFocus

request focus and reduce the volume of other players In the Android world this is know as 'Duck Others'.

requestFocusAndInterruptSpokenAudioAndMixWithOthers → const AudioFocus

Probably not to be used

requestFocusTransient → const AudioFocus

Probably not to be used

requestFocusTransientExclusive → const AudioFocus

Probably not to be used

abandonFocus → const AudioFocus

relinquish the audio focus.

doNotRequestFocus → const AudioFocus

Deprecated. Do not use

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<AudioFocus>
A constant List of the values in this enum, in order of their declaration.