Class

GKBasePlayer

The top-level player object containing basic identifying information for a player.

Declaration

@interface GKBasePlayer : NSObject

Overview

GKBasePlayer is the top level implementation for the different player objects. From GKBasePlayer, player objects follow two different paths. GKCloudPlayer objects use the player's iCloud account to join games, invite other players, save data, and send information between players. GKPlayer objects are used by the GameKit legacy classes to identify a Game Center account. In either case, accessing achievements, leaderboards, and challenges requires authentication of the local player. Use GKLocalPlayer to ensure the current player has a Game Center account and is logged in.

Topics

Identifying a Player

displayName

The Game Center profile name associated with a player.

playerID

A unique identifier associated with a player.

Relationships

Inherits From

See Also

Players

GKLocalPlayer

An object representing the authenticated Game Center player on a device.

GKPlayer

An object that provides information about a player on Game Center.

GKLocalPlayerListener

A protocol that handles events for Game Center accounts.

GKInviteEventListener

A protocol that handles invite events from Game Center.