Audio session category identifiers.
- iOS 12.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
An audio session category defines a set of audio behaviors. The operating system sets the precise behaviors associated with each category, and Apple may refine category behavior in future versions of the operating system. Choose the category that most accurately describes the audio behavior you want.
You can refine the configuration provided by the
AVAudio categories by using an audio session mode, as described in
The audio session playback-only categories (
AVAudio) support both the mirrored and nonmirrored variants of AirPlay.
The audio session category
AVAudio supports only the mirrored variant of AirPlay, while the
AVAudio categories don’t allow routing to AirPlay.