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
nilif the operation completes.