Creates a match from an accepted invitation.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
The invitation accepted by the player.
A block to be called when the match has been created. This block receives the following parameters:
If the match was successfully created, this parameter contains the created match. Otherwise, this parameter is
If the match was successfully created, this parameter contains
nil. Otherwise, this parameter holds an error object that describes the error that occurred.
When using this method to create a match, your game should display its own user interface to inform the player that he or she has been connected to a match.
When this method is called, it creates a new background task to handle the request. The method then returns control to your game. Later, when the task is complete, Game Kit calls your completion handler. The completion handler is always called on the main thread.