GKError Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration whose values specify Game Kit errors.
public enum GKError
type GKError =
- Inheritance
-
GKError
Fields
Name | Value | Description |
---|---|---|
None | 0 | No error occurred. |
Unknown | 1 | An unknown error occurred. |
Cancelled | 2 | The user cancelled the operation. |
CommunicationsFailure | 3 | There was an error in communicating with the game server. |
UserDenied | 4 | The user denied an operation. |
InvalidCredentials | 5 | The user name or password was invalid. |
NotAuthenticated | 6 | The player is not authenticated. |
AuthenticationInProgress | 7 | The player is authenticating. |
InvalidPlayer | 8 | The in-game representation of a player was invalid. |
ScoreNotSet | 9 | The score is not set. |
ParentalControlsBlocked | 10 | The requested item or service is blocked. |
PlayerStatusExceedsMaximumLength | 11 | The player's status message is longer than allowed. |
PlayerStatusInvalid | 12 | The player's status message is not valid. |
MatchRequestInvalid | 13 | The match request is logically impossible. |
Underage | 14 | The player is not old enough to access the item or service. |
GameUnrecognized | 15 | The game center did not recognize the app or game. This can be caused by an invalid bundle identifier. |
NotSupported | 16 | The Game Center is not supported by the device. |
InvalidParameter | 17 | A parameter was incorrect or miscategorized. |
UnexpectedConnection | 18 | There was a connection from an unexpected player. |
ChallengeInvalid | 19 | The challenge was invalid. |
TurnBasedMatchDataTooLarge | 20 | The match data was too large. |
TurnBasedTooManySessions | 21 | The maximum number of sessions was reached before the operation was requested. |
TurnBasedInvalidParticipant | 22 | The in-game representation of a player in a turn-based game was invalid. |
TurnBasedInvalidTurn | 23 | An attempt was made to play out of turn. |
TurnBasedInvalidState | 24 | The session for a turn-based game was in an invalid state. |
InvitationsDisabled | 25 | The receiver is not currently receiving invitations. |
Offline | 25 | |
PlayerPhotoFailure | 26 | The player's photo could not be retrieved. |
UbiquityContainerUnavailable | 27 | The iCloud container was unavailable. |
MatchNotConnected | 28 | The match is not connected. |
GameSessionRequestInvalid | 29 | The session request was not valid. |