Documentation Archive Developer
Search

GameKit Changes for Swift

GameKit

Modified GKAchievement
Protocols
FromAnyObject, NSCoding, NSSecureCoding
ToNSCoding, NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromAnyObject, NSCoding, NSSecureCoding
ToNSCoding, NSSecureCoding

Modified GKChallenge
Protocols
FromAnyObject, NSCoding, NSSecureCoding
ToNSCoding, NSSecureCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
enum GKErrorCode : Int {
    case Unknown
    case Cancelled
    case CommunicationsFailure
    case UserDenied
    case InvalidCredentials
    case NotAuthenticated
    case AuthenticationInProgress
    case InvalidPlayer
    case ScoreNotSet
    case ParentalControlsBlocked
    case PlayerStatusExceedsMaximumLength
    case PlayerStatusInvalid
    case MatchRequestInvalid
    case Underage
    case GameUnrecognized
    case NotSupported
    case InvalidParameter
    case UnexpectedConnection
    case ChallengeInvalid
    case TurnBasedMatchDataTooLarge
    case TurnBasedTooManySessions
    case TurnBasedInvalidParticipant
    case TurnBasedInvalidTurn
    case TurnBasedInvalidState
    case InvitationsDisabled
    case PlayerPhotoFailure
    case UbiquityContainerUnavailable
}
extension GKErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
extension GKErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
Equatable, ErrorType, Hashable, RawRepresentable
To
enum GKErrorCode : Int {
    case Unknown
    case Cancelled
    case CommunicationsFailure
    case UserDenied
    case InvalidCredentials
    case NotAuthenticated
    case AuthenticationInProgress
    case InvalidPlayer
    case ScoreNotSet
    case ParentalControlsBlocked
    case PlayerStatusExceedsMaximumLength
    case PlayerStatusInvalid
    case MatchRequestInvalid
    case Underage
    case GameUnrecognized
    case NotSupported
    case InvalidParameter
    case UnexpectedConnection
    case ChallengeInvalid
    case TurnBasedMatchDataTooLarge
    case TurnBasedTooManySessions
    case TurnBasedInvalidParticipant
    case TurnBasedInvalidTurn
    case TurnBasedInvalidState
    case InvitationsDisabled
    case PlayerPhotoFailure
    case UbiquityContainerUnavailable
}
extension GKErrorCode : _BridgedNSError {
}
extension GKErrorCode : _BridgedNSError {
}
--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified GKInvite
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified GKLeaderboard
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject, NSCoding, NSSecureCoding
ToNSCoding, NSSecureCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified GKLocalPlayer
Protocols
FromAnyObject, GKSavedGameListener, NSObjectProtocol
ToGKSavedGameListener

DeclarationProtocols
From
protocol GKLocalPlayerListener : GKChallengeListener, NSObjectProtocol, GKInviteEventListener, GKTurnBasedEventListener, GKSavedGameListener {
}
GKChallengeListener, GKInviteEventListener, GKSavedGameListener, GKTurnBasedEventListener, NSObjectProtocol
To
protocol GKLocalPlayerListener : GKChallengeListener, GKInviteEventListener, GKTurnBasedEventListener, GKSavedGameListener {
}
GKChallengeListener, GKInviteEventListener, GKSavedGameListener, GKTurnBasedEventListener

Modified GKMatch
Protocols
FromAnyObject
To--

Modified GKMatchmaker
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Modified GKPlayer
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified GKSavedGame
Protocols
FromAnyObject, NSCopying
ToNSCopying

Modified GKScore
Protocols
FromAnyObject, NSCoding, NSSecureCoding
ToNSCoding, NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified GKVoiceChat
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--