AudioFocus enum Null safety

Control the focus mode.

Constants

abandonFocus → const AudioFocus

relinquish the audio focus.

const AudioFocus(7)
doNotRequestFocus → const AudioFocus

Deprecated. Do not use

const AudioFocus(8)
requestFocus → const AudioFocus
const AudioFocus(0)
requestFocusAndDuckOthers → const AudioFocus

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

const AudioFocus(3)
requestFocusAndInterruptSpokenAudioAndMixWithOthers → const AudioFocus

Probably not to be used

const AudioFocus(4)
requestFocusAndKeepOthers → const AudioFocus

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

const AudioFocus(1)
requestFocusAndStopOthers → const AudioFocus

request focus and stop other audio playing

const AudioFocus(2)
requestFocusTransient → const AudioFocus

Probably not to be used

const AudioFocus(5)
requestFocusTransientExclusive → const AudioFocus

Probably not to be used

const AudioFocus(6)
values → const List<AudioFocus>

A constant List of the values in this enum, in order of their declaration.

const List<AudioFocus>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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