Contents

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 -> String

Parameters

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

Mentioned in

See Also

Working with Leaderboards