allowBluetoothA2DP
An option that determines whether you can stream audio from this session to Bluetooth devices that support the Advanced Audio Distribution Profile (A2DP).
Declaration
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, soloAmbient, or playback categories.
Starting with iOS 10.0, apps using the 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 or record categories implicitly clear this option. If you clear it, paired Bluetooth A2DP devices don’t show up as available audio output routes.