Core Bluetooth Constants

This document describes the constants found in the Core Bluetooth framework.

Topics

Constants

enum CBATTError.Code

The possible errors returned by a GATT server (a remote peripheral) during Bluetooth low energy ATT transactions.

let CBCentralManagerRestoredStatePeripheralsKey: String

An array (an instance of NSArray) of CBPeripheral objects that contains all of the peripherals that were connected to the central manager (or had a connection pending) at the time the app was terminated by the system.

let CBCentralManagerRestoredStateScanOptionsKey: String

A dictionary (an instance of NSDictionary) that contains all of the peripheral scan options that were being used by the central manager at the time the app was terminated by the system.

let CBCentralManagerRestoredStateScanServicesKey: String

An array (an instance of NSArray) of service UUIDs (represented by CBUUID objects) that contains all the services the central manager was scanning for at the time the app was terminated by the system.

enum CBError.Code

The possible errors returned during Bluetooth low energy transactions.

let CBPeripheralManagerRestoredStateAdvertisementDataKey: String

A dictionary (an instance of NSDictionary) containing the data that the peripheral manager was advertising at the time the app was terminated by the system.

let CBPeripheralManagerRestoredStateServicesKey: String

An array (an instance of NSArray) of CBMutableService objects that contains all of the services that were published to the local peripheral’s database at the time the app was terminated by the system.

Core Bluetooth Error Domain

The domain for Core Bluetooth errors.