<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/CategoryOptions-swift.struct/allowBluetoothA2DP",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@E@AVAudioSessionCategoryOptions@AVAudioSessionCategoryOptionAllowBluetoothA2DP"
  },
  "title" : "allowBluetoothA2DP"
}
-->

# allowBluetoothA2DP

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

```
static var allowBluetoothA2DP: AVAudioSession.CategoryOptions { get }
```

## Discussion

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 [`ambient`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/ambient), [`soloAmbient`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/soloAmbient), or [`playback`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playback) categories.

Starting with iOS 10.0, apps using the [`playAndRecord`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playAndRecord) 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 [`multiRoute`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/multiRoute) or [`record`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/record) categories implicitly clear this option. If you clear it, paired Bluetooth A2DP devices don’t show up as available audio output routes.

> Note:
> If this option and the ``doc://com.apple.avfaudio/documentation/AVFAudio/AVAudioSession/CategoryOptions-swift.struct/allowBluetooth`` option are both set, when a single device supports both the Hands-Free Profile (HFP) and A2DP, the system gives hands-free ports a higher priority for routing.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)