Loads the list of outstanding challenges.
- iOS 6.0+
- macOS 10.8+
- tvOS 9.0+
A block to be called when the download is completed.
The block receives the following parameters:
An array of
GKChallengeobjects that represents all challenges made to the local player. If an error occurred, this parameter may be non-
nil, in which case the array holds whatever challenge information Game Kit was able to fetch.
If an error occurred, this object describes the error. If the operation completed successfully, this 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.