Instance Method

player:didRequestMatchWithPlayers:

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

Declaration

- (void)player:(GKPlayer *)player didRequestMatchWithPlayers:(NSArray<NSString *> *)playerIDsToInvite;

Parameters

player

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

playerIDsToInvite

An array of NSString 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:didRequestMatchWithRecipients:

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