recipientResponseHandler
A method that handles when a player responds to an invitation to join a match.
Declaration
var recipientResponseHandler: ((GKPlayer, GKInviteRecipientResponse) -> Void)? { get set }Discussion
The block receives the following parameters:
playerThe player who receives the invitation.
GKInviteeRecipientResponseThe player’s response to the invitation.
GameKit calls this handler once for each player who receives an invitation to join the match. You can use this handler to update your interface to show the individual player responses.