loadImage(completionHandler:)
Loads the image for the leaderboard.
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
Contains the image for the leaderboard.
- error
Describes an error if it occurs, or
nilif the operation completes.