loadDefaultLeaderboardIdentifier(completionHandler:)
Loads the identifier for the local player’s default leaderboard.
Declaration
func loadDefaultLeaderboardIdentifier(completionHandler: (@Sendable (String?, (any Error)?) -> Void)? = nil)func loadDefaultLeaderboardIdentifier() async throws -> StringParameters
- completionHandler:
The block that GameKit calls when it completes the request.
The block receives the following parameters:
- categoryID
The leaderboard ID for the local player’s default leaderboard that you set in App Store Connect.
- error
Describes an error if it occurs, or
nilif the operation completes.