Documentation Archive Developer
Search

CoreBluetooth Changes for Swift

CoreBluetooth

DeclarationProtocols
From
enum CBATTError : Int {
    case Success
    case InvalidHandle
    case ReadNotPermitted
    case WriteNotPermitted
    case InvalidPdu
    case InsufficientAuthentication
    case RequestNotSupported
    case InvalidOffset
    case InsufficientAuthorization
    case PrepareQueueFull
    case AttributeNotFound
    case AttributeNotLong
    case InsufficientEncryptionKeySize
    case InvalidAttributeValueLength
    case UnlikelyError
    case InsufficientEncryption
    case UnsupportedGroupType
    case InsufficientResources
}
extension CBATTError : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
extension CBATTError : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
Equatable, ErrorType, Hashable, RawRepresentable
To
enum CBATTError : Int {
    case Success
    case InvalidHandle
    case ReadNotPermitted
    case WriteNotPermitted
    case InvalidPdu
    case InsufficientAuthentication
    case RequestNotSupported
    case InvalidOffset
    case InsufficientAuthorization
    case PrepareQueueFull
    case AttributeNotFound
    case AttributeNotLong
    case InsufficientEncryptionKeySize
    case InvalidAttributeValueLength
    case UnlikelyError
    case InsufficientEncryption
    case UnsupportedGroupType
    case InsufficientResources
}
extension CBATTError : _BridgedNSError {
}
extension CBATTError : _BridgedNSError {
}
--

Modified CBATTRequest
Protocols
FromAnyObject
To--

Modified CBAttribute
Protocols
FromAnyObject
To--

Modified CBCentral
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified CBDescriptor
Protocols
FromAnyObject
To--

DeclarationProtocols
From
enum CBError : Int {
    case Unknown
    case InvalidParameters
    case InvalidHandle
    case NotConnected
    case OutOfSpace
    case OperationCancelled
    case ConnectionTimeout
    case PeripheralDisconnected
    case UUIDNotAllowed
    case AlreadyAdvertising
    case ConnectionFailed
    case ConnectionLimitReached
}
extension CBError : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
extension CBError : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
Equatable, ErrorType, Hashable, RawRepresentable
To
enum CBError : Int {
    case Unknown
    case InvalidParameters
    case InvalidHandle
    case NotConnected
    case OutOfSpace
    case OperationCancelled
    case ConnectionTimeout
    case PeripheralDisconnected
    case UUIDNotAllowed
    case AlreadyAdvertising
    case ConnectionFailed
    case ConnectionLimitReached
}
extension CBError : _BridgedNSError {
}
extension CBError : _BridgedNSError {
}
--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified CBPeer
Protocols
FromAnyObject, NSCopying
ToNSCopying

Modified CBPeripheral
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified CBService
Protocols
FromAnyObject
To--

Modified CBUUID
Protocols
FromAnyObject, NSCopying
ToNSCopying