Protocol

GKMatchmakerViewControllerDelegate

A class implements the GKMatchmakerViewControllerDelegate protocol to receive notifications from a GKMatchmakerViewController object. The delegate is called if a new match has been successfully created, if the user cancels matchmaking, and if an error occurs. In all three cases, the delegate should dismiss the view controller.

Declaration

@protocol GKMatchmakerViewControllerDelegate

Topics

Completing a Match Request

- matchmakerViewController:didFindMatch:

Called when a peer-to-peer match is found.

- matchmakerViewController:didFindHostedPlayers:

Called when a hosted match is found.

Handling Cancellations

- matchmakerViewControllerWasCancelled:

Called when the user cancels the matchmaking request

Required.

Handling Errors

- matchmakerViewController:didFailWithError:

Called when the view controller encounters an unrecoverable error.

Required.

Hosted Matches

- matchmakerViewController:hostedPlayerDidAccept:

Called when a player in a hosted match accepts the invitation.

Deprecated Methods

- matchmakerViewController:didFindPlayers:

Called when a hosted match is found.

Deprecated
- matchmakerViewController:didReceiveAcceptFromHostedPlayer:

Called when a player in a hosted match accepts the invitation.

Deprecated

Relationships

Inherits From

See Also

Getting and Setting the Delegate

matchmakerDelegate

The delegate for the matchmaker view controller.