player(_:didAccept:)
Handles the event when the local player accepts an invitation from another player.
Declaration
optional func player(_ player: GKPlayer, didAccept invite: GKInvite)Parameters
- player:
The local player who accepts the invitation.
- invite:
The invitation that the local player accepts.
Mentioned in
Discussion
This method presents the matchmaker view controller in the invitation state so that the local player can see other players in the match accept their invitations.