Contents

player(_:wantsToQuitMatch:)

Handles when the current participant wants to quit a match.

Declaration

optional func player(_ player: GKPlayer, wantsToQuitMatch match: GKTurnBasedMatch)

Parameters

  • player:

    The player who receives this turn-based event.

  • match:

    The match that the current participant wants to quit.

Mentioned in

Discussion

Implement this method to forfeit the match by passing the turn to the next participant using the participantQuitInTurn(with:nextParticipants:turnTimeout:match:completionHandler:) method.

See Also

Handling Match-Related Events