image property for a completed achievement.
- iOS 4.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
A block to be called when the download is completed.
The block receives the following parameters:
The downloaded image. If an error occurred, this value is
If an error occurred, this error object describes the error. If the operation completed successfully, this value is
Loading and displaying achievements using a custon interface is a two-step process, with the first step being to call the
load method. The second step is to call the
load method for each achievement the user has completed. Your game should display the placeholder image until the image is successfully downloaded. After the block is called, the description’s
image property holds the same image object that is returned to the block.
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.
In macOS, this class method returns an
NSImage object but otherwise works identically.