IosAudioCategory enum
Represents audio playback category on iOS.
An 'ambient' category should be used for tasks like game audio, whereas the playback category should be used for tasks like music player playback.
Note that for background audio to work, the playback category must be
used, and the shouldPlayWhileAppPaused
flag must also be set.
See https://developer.apple.com/documentation/avfoundation/avaudiosessioncategory for more information.
Values
- ambientSolo → const IosAudioCategory
-
Audio is silenced by screen lock and the silent switch; audio will not mix with other apps' audio.
- ambientMixed → const IosAudioCategory
-
Audio is silenced by screen lock and the silent switch; audio will mix with other apps' (mixable) audio.
- playback → const IosAudioCategory
-
Audio is not silenced by screen lock or silent switch; audio will not mix with other apps' audio.
The default value.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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<
IosAudioCategory> - A constant List of the values in this enum, in order of their declaration.