Instance Method

player(_:didRequestMatchWithRecipients:)

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

Declaration

optional func player(_ player: GKPlayer, didRequestMatchWithRecipients recipientPlayers: [GKPlayer])

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

func player(GKPlayer, didAccept: GKInvite)

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

func player(GKPlayer, didRequestMatchWithPlayers: [String])

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

Deprecated