player(_:didRequestMatchWithRecipients:)
Handles the event when the local player sends other players an invitation to join a match.
Declaration
optional func player(_ player: GKPlayer, didRequestMatchWithRecipients recipientPlayers: [GKPlayer])Parameters
- player:
The local player who sends the invitation.
- recipientPlayers:
The players who receive invitations to join the match.
Discussion
When GameKit calls this method, Game Center starts the matchmaking process.