Documentation Archive Developer
Search

WatchConnectivity Changes for Swift

WatchConnectivity

DeclarationProtocols
From
enum WCErrorCode : Int {
    case GenericError
    case SessionNotSupported
    case SessionMissingDelegate
    case SessionNotActivated
    case DeviceNotPaired
    case WatchAppNotInstalled
    case NotReachable
    case InvalidParameter
    case PayloadTooLarge
    case PayloadUnsupportedTypes
    case MessageReplyFailed
    case MessageReplyTimedOut
    case FileAccessDenied
    case DeliveryFailed
    case InsufficientSpace
}
extension WCErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
extension WCErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
Equatable, ErrorType, Hashable, RawRepresentable
To
enum WCErrorCode : Int {
    case GenericError
    case SessionNotSupported
    case SessionMissingDelegate
    case SessionNotActivated
    case DeviceNotPaired
    case WatchAppNotInstalled
    case NotReachable
    case InvalidParameter
    case PayloadTooLarge
    case PayloadUnsupportedTypes
    case MessageReplyFailed
    case MessageReplyTimedOut
    case FileAccessDenied
    case DeliveryFailed
    case InsufficientSpace
}
extension WCErrorCode : _BridgedNSError {
}
extension WCErrorCode : _BridgedNSError {
}
--

Modified WCSession
Protocols
FromAnyObject
To--

Modified WCSessionFile
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

DeclarationProtocols
From
class WCSessionUserInfoTransfer : NSObject, NSSecureCoding, NSCoding {
    var currentComplicationInfo: Bool { get }
    var userInfo: [String : AnyObject] { get }
    var transferring: Bool { get }
    func cancel()
}
AnyObject, NSCoding, NSSecureCoding
To
class WCSessionUserInfoTransfer : NSObject, NSSecureCoding {
    var currentComplicationInfo: Bool { get }
    var userInfo: [String : AnyObject] { get }
    var transferring: Bool { get }
    func cancel()
}
NSSecureCoding