Core Bluetooth Constants

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

Symbols

Constants

CBATTError.Code

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

let CBAdvertisementDataIsConnectable: Stringlet CBAdvertisementDataLocalNameKey: Stringlet CBAdvertisementDataManufacturerDataKey: Stringlet CBAdvertisementDataOverflowServiceUUIDsKey: Stringlet CBAdvertisementDataServiceDataKey: Stringlet CBAdvertisementDataServiceUUIDsKey: Stringlet CBAdvertisementDataSolicitedServiceUUIDsKey: Stringlet CBAdvertisementDataTxPowerLevelKey: Stringlet CBCentralManagerOptionRestoreIdentifierKey: Stringlet CBCentralManagerOptionShowPowerAlertKey: String
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.

let CBCentralManagerScanOptionAllowDuplicatesKey: Stringlet CBCentralManagerScanOptionSolicitedServiceUUIDsKey: Stringlet CBConnectPeripheralOptionNotifyOnConnectionKey: Stringlet CBConnectPeripheralOptionNotifyOnDisconnectionKey: Stringlet CBConnectPeripheralOptionNotifyOnNotificationKey: String
CBError.Code

The possible errors returned during Bluetooth low energy transactions.

let CBPeripheralManagerOptionRestoreIdentifierKey: Stringlet CBPeripheralManagerOptionShowPowerAlertKey: String
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.

let CBUUIDAppearanceString: Stringlet CBUUIDCharacteristicAggregateFormatString: Stringlet CBUUIDCharacteristicExtendedPropertiesString: Stringlet CBUUIDCharacteristicFormatString: Stringlet CBUUIDCharacteristicUserDescriptionString: Stringlet CBUUIDCharacteristicValidRangeString: Stringlet CBUUIDClientCharacteristicConfigurationString: Stringlet CBUUIDDeviceNameString: Stringlet CBUUIDGenericAccessProfileString: String
let CBUUIDGenericAttributeProfileString: String

The string representation of the GATT service UUID.

let CBUUIDPeripheralPreferredConnectionParametersString: Stringlet CBUUIDPeripheralPrivacyFlagString: Stringlet CBUUIDReconnectionAddressString: Stringlet CBUUIDServerCharacteristicConfigurationString: Stringlet CBUUIDServiceChangedString: Stringlet CBUUIDValidRangeString: String
Core Bluetooth Attribute Protocol (ATT) Error Domain

The domain for Core Bluetooth ATT errors.

Core Bluetooth Error Domain

The domain for Core Bluetooth errors.