player(_:didRequestMatchWithPlayers:)
Handles when the player uses Game Center to start a match with other players.
Declaration
optional func player(_ player: GKPlayer, didRequestMatchWithPlayers playerIDsToInvite: [String])Parameters
- player:
The player who receives this turn-based event. .
- playerIDsToInvite:
The identifiers for the players to invite in the view controller interface.
Discussion
Implement this method to present a GKTurnBasedMatchmakerViewController configured with the players to invite specified by the playerIDsToInvite parameter.