Instance Method

player:didRequestMatchWithRecipients:

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

Declaration

- (void)player:(GKPlayer *)player didRequestMatchWithRecipients:(NSArray<GKPlayer *> *)recipientPlayers;

Parameters

player

The GKPlayer object that identifies the player associated with the invitation.

recipientPlayers

An array of GKPlayer objects containing the player identifiers invited to the match.

Discussion

When this method is called, the game is launched from Game Center and starts the matchmaking process.

See Also

Starting a New Match

- player:didAcceptInvite:

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

- player:didRequestMatchWithPlayers:

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

Deprecated