AVAudioSessionCategory enum

This is a Dart representation of the equivalent enum on Swift.

Audio session category identifiers. An audio session category defines a set of audio behaviors. Choose a category that most accurately describes the audio behavior you require.

Inheritance
Available extensions

Values

ambient → const AVAudioSessionCategory

Silenced by the Ring/Silent switch and by screen locking = Yes Interrupts nonmixable app’s audio = No Output only

soloAmbient → const AVAudioSessionCategory

Silenced by the Ring/Silent switch and by screen locking = Yes Interrupts nonmixable app’s audio = Yes Output only This is the platform's default (not AP's default witch is playAndRecord).

playback → const AVAudioSessionCategory

Silenced by the Ring/Silent switch and by screen locking = No Interrupts nonmixable app’s audio = Yes by default; no by using override switch. Note: the switch is the .mixWithOthers option (+ other options like .duckOthers). Output only

record → const AVAudioSessionCategory

Silenced by the Ring/Silent switch and by screen locking = No (recording continues with screen locked) Interrupts nonmixable app’s audio = Yes Input only

playAndRecord → const AVAudioSessionCategory

Silenced by the Ring/Silent switch and by screen locking = No Interrupts nonmixable app’s audio = Yes by default; no by using override switch. Note: the switch is the .mixWithOthers option (+ other options like .duckOthers). Input and output

multiRoute → const AVAudioSessionCategory

Silenced by the Ring/Silent switch and by screen locking = No Interrupts nonmixable app’s audio = Yes Input and output

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