Enumeration Case

AVAudioSessionCategoryOptionAllowBluetoothA2DP

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

Declaration

AVAudioSessionCategoryOptionAllowBluetoothA2DP = 0x20

Discussion

The Advanced Audio Distribution Profile (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 an app’s audio session is configured 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, you need to pass this category option when setting your audio session's category.

Audio sessions using the AVAudioSessionCategoryMultiRoute or AVAudioSessionCategoryRecord categories implicitly clear this option. If this option is cleared, paired Bluetooth A2DP devices do not show up as available audio output routes.

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