loadImage(completionHandler:)
Loads the localized image that you associate with the leaderboard set.
Declaration
func loadImage(completionHandler: (@Sendable (UIImage?, (any Error)?) -> Void)? = nil)func loadImage() async throws -> UIImagefunc loadImage(completionHandler: (@Sendable (NSImage?, (any Error)?) -> Void)? = nil)func loadImage() async throws -> NSImageParameters
- completionHandler:
A block that GameKit calls when this method completes the request.
The block receives the following parameters:
- image
The image for the leaderboard set. If an error occurs, this property may be non-
niland contain data GameKit loads before the error occurs.- error
Describes an error if it occurs, or
nilif the operation completes.