Programmatically accept an invitation to a turn-based match.
- iOS 5.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
A block to be called after the match is successfully created.
The block receives the following parameters:
A newly initialized match object that contains a list of players for the match. If an error occurred, this value is
If an error occurred, this error object describes the error. If the operation was completed successfully, the value is
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.