Contents

loadImage(completionHandler:)

Loads the image for the leaderboard.

Declaration

func loadImage(completionHandler: (@Sendable (UIImage?, (any Error)?) -> Void)? = nil)
func loadImage() async throws -> UIImage
func loadImage(completionHandler: (@Sendable (NSImage?, (any Error)?) -> Void)? = nil)
func loadImage() async throws -> NSImage

Parameters

  • 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 nil if the operation completes.

Mentioned in