Type Property


Output to a Bluetooth Low Energy (LE) peripheral.


static let bluetoothLE: AVAudioSession.Port


Apple supports the use of Bluetooth Low Energy (LE) hearing aids. Apps don’t have control over routing to these devices. Instead, the system automatically decides when routing to Bluetooth LE is appropriate.

To determine if audio is currently routed to a Bluetooth LE device, inspect the current audio route and look for the presence of a Bluetooth LE port type (see example).

Listing 1

Determining if audio is routed to a Bluetooth LE device

var routingToBLE = false
let session = AVAudioSession.sharedInstance()
// Iterate over the currentRoute's outputs
for portDesc in session.currentRoute.outputs {
    if portDesc.portType == AVAudioSessionPortBluetoothLE {
        routingToBLE = true

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