Enumeration

AVAudioSessionCategoryOptions

Constants that specify optional audio behaviors.

Declaration

typedef enum AVAudioSessionCategoryOptions : NSUInteger {
    ...
} AVAudioSessionCategoryOptions;

Overview

Each option is valid only for specific audio session categories.

Topics

Audio Session Options

AVAudioSessionCategoryOptionMixWithOthers

An option that indicates whether audio from this session mixes with audio from active sessions in other audio apps.

AVAudioSessionCategoryOptionDuckOthers

An option that reduces the volume of other audio session while audio from this session plays.

AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers

An option that determines whether to pause spoken audio content from other sessions when your app plays its audio.

AVAudioSessionCategoryOptionAllowBluetooth

An option that determines whether Bluetooth hands-free devices appear as available input routes.

AVAudioSessionCategoryOptionAllowBluetoothA2DP

An option that determines whether you can stream audio from this session to Bluetooth devices that support the Advanced Audio Distribution Profile (A2DP).

AVAudioSessionCategoryOptionAllowAirPlay

An option that determines whether you can stream audio from this session to AirPlay devices.

AVAudioSessionCategoryOptionDefaultToSpeaker

An option that determines whether audio from the session defaults to the built-in speaker instead of the receiver.

See Also

Configuring the Audio Session

category

The current audio session category.

- setCategory:error:

Sets the audio session’s category.

availableCategories

The audio session categories available on the current device.

AVAudioSessionCategory

Audio session category identifiers.

categoryOptions

The set of options associated with the current audio session category.

- setCategory:withOptions:error:

Sets the audio session’s category with the specified options.

mode

The current audio session’s mode.

- setMode:error:

Sets the audio session’s mode.

- setCategory:mode:options:error:

Sets the audio session’s category, mode, and options.

availableModes

The audio session modes available on the device.

AVAudioSessionMode

Audio session mode identifiers.

routeSharingPolicy

The current route-sharing policy.

- setCategory:mode:routeSharingPolicy:options:error:

Sets the session category, mode, route-sharing policy, and options.

AVAudioSessionRouteSharingPolicy

Cases that indicate the possible route-sharing policies for an audio session.