<!--
{
  "availability" : [
    "iOS: 6.0.0 - 7.0.0",
    "iPadOS: 6.0.0 - 7.0.0",
    "macOS: 10.8.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKLocalPlayer/loadDefaultLeaderboardCategoryID(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLocalPlayer(im)loadDefaultLeaderboardCategoryIDWithCompletionHandler:"
  },
  "title" : "loadDefaultLeaderboardCategoryID(completionHandler:)"
}
-->

# loadDefaultLeaderboardCategoryID(completionHandler:)

Loads the category identifier for the local player’s default leaderboard.

```
func loadDefaultLeaderboardCategoryID(completionHandler: (@Sendable (String?, (any Error)?) -> Void)? = nil)
```

## Parameters

`completionHandler`

A block to call when the request completes.

    The block receives the following parameters:

- categoryID: The category ID string for the local player’s default leaderboard.
- error: If an error occurrs, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)