loadLeaderboards(handler:)
Loads the leaderboards in the leaderboard set.
Declaration
func loadLeaderboards(handler: @escaping ([GKLeaderboard]?, (any Error)?) -> Void)Parameters
- handler:
A block that GameKit calls when this method completes the request.
The block receives the following parameters:
- leaderboards
The leaderboards in the leaderboard set.
- error
Describes an error if it occurs, or
nilif the operation completes.