Enumeration Case


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


AVAudioSessionCategoryOptionAllowBluetoothA2DP = 0x20


A2DP is a stereo, output-only profile intended for higher bandwidth audio use cases, such as music playback. The system automatically routes to A2DP ports if you configure an app’s audio session to use the AVAudioSessionCategoryAmbient, AVAudioSessionCategorySoloAmbient, or AVAudioSessionCategoryPlayback categories.

Starting with iOS 10.0, apps using the AVAudioSessionCategoryPlayAndRecord category may also allow routing output to paired Bluetooth A2DP devices. To enable this behavior, pass this category option when setting your audio session’s category.

Audio sessions using the AVAudioSessionCategoryMultiRoute or AVAudioSessionCategoryRecord categories implicitly clear this option. If you clear it, paired Bluetooth A2DP devices don’t show up as available audio output routes.

See Also

Audio Session Options


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


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


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


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


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


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