Documentation Archive Developer
Search

CoreBluetooth Changes

CoreBluetooth

Removed CBAttributePermissions.value
Removed CBCharacteristicProperties.value
Added CBAttributePermissions.init(rawValue: UInt)
Added CBCharacteristicProperties.init(rawValue: UInt)
Modified CBATTRequest
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBAttributePermissions [struct]
DeclarationIntroduction
From
struct CBAttributePermissions : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var Readable: CBAttributePermissions { get }
    static var Writeable: CBAttributePermissions { get }
    static var ReadEncryptionRequired: CBAttributePermissions { get }
    static var WriteEncryptionRequired: CBAttributePermissions { get }
}
iOS 8.0
To
struct CBAttributePermissions : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var Readable: CBAttributePermissions { get }
    static var Writeable: CBAttributePermissions { get }
    static var ReadEncryptionRequired: CBAttributePermissions { get }
    static var WriteEncryptionRequired: CBAttributePermissions { get }
}
iOS 6.0

Modified CBAttributePermissions.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified CBCentral
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBCentralManager
Introduction
FromiOS 8.0
ToiOS 5.0

Modified CBCentralManager.init(delegate: CBCentralManagerDelegate!, queue: dispatch_queue_t!)
Declaration
From
init(delegate delegate: CBCentralManagerDelegate!, queue queue: dispatch_queue_t!)
To
init!(delegate delegate: CBCentralManagerDelegate!, queue queue: dispatch_queue_t!)

Modified CBCentralManager.init(delegate: CBCentralManagerDelegate!, queue: dispatch_queue_t!, options:[NSObject: AnyObject]!)
DeclarationIntroduction
From
init(delegate delegate: CBCentralManagerDelegate!, queue queue: dispatch_queue_t!, options options: [NSObject : AnyObject]!)
iOS 8.0
To
init!(delegate delegate: CBCentralManagerDelegate!, queue queue: dispatch_queue_t!, options options: [NSObject : AnyObject]!)
iOS 7.0

Modified CBCentralManager.retrieveConnectedPeripheralsWithServices([AnyObject]!) -> [AnyObject]!
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBCentralManager.retrievePeripheralsWithIdentifiers([AnyObject]!) -> [AnyObject]!
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBCharacteristic
Introduction
FromiOS 8.0
ToiOS 5.0

Modified CBCharacteristic.isBroadcasted
IntroductionDeprecation
FromiOS 8.0--
ToiOS 5.0iOS 8.0

Modified CBCharacteristicProperties [struct]
Declaration
From
struct CBCharacteristicProperties : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var Broadcast: CBCharacteristicProperties { get }
    static var Read: CBCharacteristicProperties { get }
    static var WriteWithoutResponse: CBCharacteristicProperties { get }
    static var Write: CBCharacteristicProperties { get }
    static var Notify: CBCharacteristicProperties { get }
    static var Indicate: CBCharacteristicProperties { get }
    static var AuthenticatedSignedWrites: CBCharacteristicProperties { get }
    static var ExtendedProperties: CBCharacteristicProperties { get }
    static var NotifyEncryptionRequired: CBCharacteristicProperties { get }
    static var IndicateEncryptionRequired: CBCharacteristicProperties { get }
}
To
struct CBCharacteristicProperties : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var Broadcast: CBCharacteristicProperties { get }
    static var Read: CBCharacteristicProperties { get }
    static var WriteWithoutResponse: CBCharacteristicProperties { get }
    static var Write: CBCharacteristicProperties { get }
    static var Notify: CBCharacteristicProperties { get }
    static var Indicate: CBCharacteristicProperties { get }
    static var AuthenticatedSignedWrites: CBCharacteristicProperties { get }
    static var ExtendedProperties: CBCharacteristicProperties { get }
    static var NotifyEncryptionRequired: CBCharacteristicProperties { get }
    static var IndicateEncryptionRequired: CBCharacteristicProperties { get }
}

Modified CBCharacteristicProperties.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified CBDescriptor
Introduction
FromiOS 8.0
ToiOS 5.0

Modified CBMutableCharacteristic
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBMutableCharacteristic.subscribedCentrals
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBMutableCharacteristic.init(type: CBUUID!, properties: CBCharacteristicProperties, value: NSData!, permissions: CBAttributePermissions)
Declaration
From
init(type UUID: CBUUID!, properties properties: CBCharacteristicProperties, value value: NSData!, permissions permissions: CBAttributePermissions)
To
init!(type UUID: CBUUID!, properties properties: CBCharacteristicProperties, value value: NSData!, permissions permissions: CBAttributePermissions)

Modified CBMutableDescriptor
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBMutableDescriptor.init(type: CBUUID!, value: AnyObject!)
Declaration
From
init(type UUID: CBUUID!, value value: AnyObject!)
To
init!(type UUID: CBUUID!, value value: AnyObject!)

Modified CBMutableService
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBMutableService.init(type: CBUUID!, primary: Bool)
Declaration
From
init(type UUID: CBUUID!, primary isPrimary: Bool)
To
init!(type UUID: CBUUID!, primary isPrimary: Bool)

Modified CBPeer.identifier
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBPeripheral
Introduction
FromiOS 8.0
ToiOS 5.0

Modified CBPeripheral.RSSI
IntroductionDeprecation
FromiOS 8.0--
ToiOS 5.0iOS 8.0

Modified CBPeripheralDelegate.peripheral(CBPeripheral!, didModifyServices:[AnyObject]!)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBPeripheralDelegate.peripheralDidUpdateName(CBPeripheral!)
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBPeripheralDelegate.peripheralDidUpdateRSSI(CBPeripheral!, error: NSError!)
IntroductionDeprecation
FromiOS 8.0--
ToiOS 5.0iOS 8.0

Modified CBPeripheralManager
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBPeripheralManager.authorizationStatus() -> CBPeripheralManagerAuthorizationStatus [class]
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBPeripheralManager.init(delegate: CBPeripheralManagerDelegate!, queue: dispatch_queue_t!)
Declaration
From
init(delegate delegate: CBPeripheralManagerDelegate!, queue queue: dispatch_queue_t!)
To
init!(delegate delegate: CBPeripheralManagerDelegate!, queue queue: dispatch_queue_t!)

Modified CBPeripheralManager.init(delegate: CBPeripheralManagerDelegate!, queue: dispatch_queue_t!, options:[NSObject: AnyObject]!)
DeclarationIntroduction
From
init(delegate delegate: CBPeripheralManagerDelegate!, queue queue: dispatch_queue_t!, options options: [NSObject : AnyObject]!)
iOS 8.0
To
init!(delegate delegate: CBPeripheralManagerDelegate!, queue queue: dispatch_queue_t!, options options: [NSObject : AnyObject]!)
iOS 7.0

Modified CBPeripheralManagerAuthorizationStatus [enum]
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBPeripheralManagerConnectionLatency [enum]
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBPeripheralManagerState [enum]
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBPeripheralState [enum]
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBService
Introduction
FromiOS 8.0
ToiOS 5.0

Modified CBUUID
Introduction
FromiOS 8.0
ToiOS 5.0

Modified CBUUID.init(CFUUID: CFUUID!)
NameDeclarationIntroduction
FromUUIDWithCFUUID(_:)
class func UUIDWithCFUUID(_ theUUID: CFUUID!) -> CBUUID!
iOS 8.0
Toinit(CFUUID:)
init!(CFUUID theUUID: CFUUID!) -> CBUUID
iOS 8.1

Modified CBUUID.init(NSUUID: NSUUID!)
NameDeclarationIntroduction
FromUUIDWithNSUUID(_:)
class func UUIDWithNSUUID(_ theUUID: NSUUID!) -> CBUUID!
iOS 8.0
Toinit(NSUUID:)
init!(NSUUID theUUID: NSUUID!) -> CBUUID
iOS 8.1

Modified CBUUID.UUIDString
Introduction
FromiOS 8.0
ToiOS 7.1

Modified CBUUID.init(data: NSData!)
NameDeclarationIntroduction
FromUUIDWithData(_:)
class func UUIDWithData(_ theData: NSData!) -> CBUUID!
iOS 8.0
Toinit(data:)
init!(data theData: NSData!) -> CBUUID
iOS 8.1

Modified CBUUID.init(string: String!)
NameDeclarationIntroduction
FromUUIDWithString(_:)
class func UUIDWithString(_ theString: String!) -> CBUUID!
iOS 8.0
Toinit(string:)
init!(string theString: String!) -> CBUUID
iOS 8.1

Modified CBAdvertisementDataIsConnectable
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBAdvertisementDataOverflowServiceUUIDsKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBAdvertisementDataSolicitedServiceUUIDsKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBCentralManagerOptionRestoreIdentifierKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBCentralManagerOptionShowPowerAlertKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBCentralManagerRestoredStatePeripheralsKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBCentralManagerRestoredStateScanOptionsKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBCentralManagerRestoredStateScanServicesKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBCentralManagerScanOptionSolicitedServiceUUIDsKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBConnectPeripheralOptionNotifyOnConnectionKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBConnectPeripheralOptionNotifyOnNotificationKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified CBPeripheralManagerOptionRestoreIdentifierKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBPeripheralManagerOptionShowPowerAlertKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBPeripheralManagerRestoredStateAdvertisementDataKey
Introduction
FromiOS 8.0
ToiOS 7.0

Modified CBPeripheralManagerRestoredStateServicesKey
Introduction
FromiOS 8.0
ToiOS 7.0