Contents

loadLeaderboardSets(completionHandler:)

Loads all of the leaderboard sets you configure for your game.

Declaration

class func loadLeaderboardSets(completionHandler: (@Sendable ([GKLeaderboardSet]?, (any Error)?) -> Void)? = nil)
class func loadLeaderboardSets() async throws -> [GKLeaderboardSet]

Parameters

  • completionHandler:

    A block that GameKit calls when this method completes the request.

    The block receives the following parameters:

    leaderboardSets

    The leaderboard sets in your game.

    error

    Describes an error if it occurs, or nil if the operation completes.

Mentioned in

See Also

Loading Leaderboard Sets