Documentation Archive Developer
Search

MultipeerConnectivity Changes for Swift

MultipeerConnectivity

Protocols
FromAnyObject
To--

Protocols
FromAnyObject, MCNearbyServiceBrowserDelegate, NSObjectProtocol
ToMCNearbyServiceBrowserDelegate

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
enum MCErrorCode : Int {
    case Unknown
    case NotConnected
    case InvalidParameter
    case Unsupported
    case TimedOut
    case Cancelled
    case Unavailable
}
extension MCErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
extension MCErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
Equatable, ErrorType, Hashable, RawRepresentable
To
enum MCErrorCode : Int {
    case Unknown
    case NotConnected
    case InvalidParameter
    case Unsupported
    case TimedOut
    case Cancelled
    case Unavailable
}
extension MCErrorCode : _BridgedNSError {
}
extension MCErrorCode : _BridgedNSError {
}
--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified MCPeerID
DeclarationProtocols
From
class MCPeerID : NSObject, NSCopying, NSSecureCoding, NSCoding {
    init(displayName myDisplayName: String)
    var displayName: String { get }
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class MCPeerID : NSObject, NSCopying, NSSecureCoding {
    init(displayName myDisplayName: String)
    var displayName: String { get }
}
NSCopying, NSSecureCoding

Modified MCSession
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--