Deprecated GKMatchmaker Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in iOS 7.0
A block to be called when an invitation to join a match is accepted by the local player. (Deprecated in iOS 7.0.)
The block takes the following parameters:
The invitation accepted by the player.
An array of
NSStringobjects containing player identifiers for additional players to invite into the game.
Your block should respond to the invitation in one of two ways:
Display the standard user interface by initializing a new
GKMatchmakerViewControllerobject, passing the invitation object and the list of player identifiers as parameters.
Create a match programmatically by calling the
matchForInvite:completionHandler:method on the shared matchmaker instance.
If your game receives an invitation while it is already running, it should transition to multiplayer play. It should clean up any existing content, such as ending the current match the player is playing, and then process the invitation.
- Available in iOS 4.1 and later.
- Deprecated in iOS 7.0.