AudioContextConfigFocus enum

Inheritance

Constructors

AudioContextConfigFocus()
const

Values

gain → const AudioContextConfigFocus

An option that expresses the fact that your application is now the sole source of audio that the user is listening to.

On Android, this will set the focus AndroidAudioFocus.gain.

On iOS, this will not set any additional AVAudioSessionOptions.

duckOthers → const AudioContextConfigFocus

An option that reduces the volume of other audio sessions while audio from this session (like an alarm, gps, etc.) plays on top.

On Android, this will make an Audio Focus request with AndroidAudioFocus.gainTransientMayDuck when your audio starts playing.

On iOS, this will set the option AVAudioSessionOptions.duckOthers (the option AVAudioSessionOptions.mixWithOthers is set implicitly). Note that this forces the category to be AVAudioSessionCategory.playAndRecord, and thus is forbidden when AudioContextConfig.respectSilence is set.

mixWithOthers → const AudioContextConfigFocus

An option that indicates whether audio from this session mixes with audio from active sessions in other audio apps.

On Android, this will set the focus AndroidAudioFocus.none.

On iOS, this will set the option AVAudioSessionOptions.mixWithOthers.

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