Protocol

GKInviteEventListener

A protocol that handles invite events from Game Center.

Declaration

@protocol GKInviteEventListener

Overview

You can invite other players and start your game from directly from Game Center. Accepting an invitation begins the game from Game Center with the accepting player assigned a spot in the game.

Do not implement GKInviteEventListener directly, instead use GKLocalPlayerListener. The GKLocalPlayerListener protocol inherits methods from GKInviteEventListener, GKChallengeListener, GKSavedGameListener, and GKTurnBasedEventListener in order to handle multiple events.

Topics

Starting a New Match

- player:didAcceptInvite:

Called when another player accepts a match invite from the local player.

- player:didRequestMatchWithRecipients:

Called when the local player starts a match with another player from Game Center.

- player:didRequestMatchWithPlayers:

Called when the local player starts a match with another player from Game Center.

Deprecated

Relationships

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.

GKBasePlayer

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

GKLocalPlayerListener

A protocol that handles events for Game Center accounts.