Protocol: GKTurnBasedMatchmakerViewControllerDelegate
Overview
Your game implements the GKTurnBasedMatchmakerViewControllerDelegate protocol on an object to respond to events generated by a GKTurnBasedMatchmakerViewController object.Called when an error occurs. (required)Called when the player selected a match to view. (required)Called when a player chooses to quit the match. (required)Called when the player cancels matchmaking. (required)
Instance Method Summary (collapse)
-
- turnBasedMatchmakerViewController:didFailWithError:
Called when an error occurs.
-
- turnBasedMatchmakerViewController:didFindMatch:
Called when the player selected a match to view.
-
- turnBasedMatchmakerViewController:playerQuitForMatch:
Called when a player chooses to quit the match.
-
- turnBasedMatchmakerViewControllerWasCancelled:
Called when the player cancels matchmaking.
Instance Method Details
- (Object) turnBasedMatchmakerViewController(viewController, didFailWithError:error)
Called when an error occurs. (required) Your game should dismiss the view controller.
- (Object) turnBasedMatchmakerViewController(viewController, didFindMatch:match)
Called when the player selected a match to view. (required) Your game should dismiss the view controller and use the match object to show the current state of the match to the player.
- (Object) turnBasedMatchmakerViewController(viewController, playerQuitForMatch:match)
Called when a player chooses to quit the match. (required) When this method is called, the player is the current participant in the match, but that player has chosen to resign the match instead of taking a turn. Your game should dismiss the view controller, set an outcome for the player, and then call the match’s participantQuitInTurnWithOutcome:nextParticipant:matchData:completionHandler: method.
- (Object) turnBasedMatchmakerViewControllerWasCancelled(viewController)
Called when the player cancels matchmaking. (required) Your game should dismiss the view controller.