Contents

pairedDeviceIdentifiers()

Returns the UUIDs of the hearing device peripherals.

Declaration

static func pairedDeviceIdentifiers() -> [UUID]

Return Value

An array of NSUUID objects that represent the Core Bluetooth UUIDs of the hearing device peripherals.

Discussion

This function returns each CBPeripheral with a manufacturer that matches the manufacturer in your app’s hearing.aid.app entitlement. For bimodal hearing devices, specify an array of manufacturers for this entitlement.

Find and connect to the matching hearing device peripherals like this:

let uuids = AXMFiHearingDevice.pairedDeviceIdentifiers()
let peripherals = bluetoothManager.retrievePeripherals(withIdentifiers: uuids)
for peripheral in peripherals where peripheral.state == .connected {
    bluetoothManager.connect(peripheral)
}

See Also

Paired hearing devices