Contents

player(_:didRequestMatchWithPlayers:)

Handles the event when the local player sends other players an invitation to join a match.

Declaration

optional func player(_ player: GKPlayer, didRequestMatchWithPlayers playerIDsToInvite: [String])

Parameters

  • player:

    The local player who sends the invitation.

  • playerIDsToInvite:

    The identifiers for the players who receive invitations to join the match.

Discussion

When you call this method, GameKit launches the game and starts the matchmaking process.

See Also

Starting a New Match