Structure

AVAudioSession.CategoryOptions

Constants that specify optional audio behaviors. Each option is valid only with specific audio session categories.

Declaration

struct CategoryOptions

Topics

Constants

static var mixWithOthers: AVAudioSession.CategoryOptions

Determines whether audio from this session is mixed with audio from active sessions in other audio apps.

static var duckOthers: AVAudioSession.CategoryOptions

Causes audio from other sessions to be ducked (reduced in volume) while audio from this session plays.

static var interruptSpokenAudioAndMixWithOthers: AVAudioSession.CategoryOptions

Determines whether continuous spoken content from another app is paused when this app's audio content is played.

static var allowBluetooth: AVAudioSession.CategoryOptions

Determines whether Bluetooth handsfree devices appear as available input routes.

static var allowBluetoothA2DP: AVAudioSession.CategoryOptions

Determines whether audio from this session can be streamed to Bluetooth devices that support the Advanced Audio Distribution Profile (A2DP).

static var allowAirPlay: AVAudioSession.CategoryOptions

Determines whether audio from this session can be streamed to AirPlay devices.

static var defaultToSpeaker: AVAudioSession.CategoryOptions

Determines whether audio from the session defaults to the built-in speaker instead of the receiver.

Initializers

init(rawValue: UInt)

Default initializer.

Relationships

Conforms To

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software