Following the deprecation of the Google Sign-In API, we are removing the games v1 SDK in 2026. After February 2025, you will be unable to publish titles that are newly integrated with games v1 SDK, on Google Play. We recommend that you use the games v2 SDK instead.
While existing titles with the previous games v1 integrations continue to function for a couple of years, you are encouraged to migrate to v2 starting June 2025.
Leaderboards.LoadScoresResult
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From interface com.google.android.gms.common.api.Result
From interface
com.google.android.gms.common.api.Releasable
Public Methods
public abstract Leaderboard
getLeaderboard ()
Returns
- The leaderboard that the requested scores belong to. This may be null if the
leaderboard metadata could not be found.
Returns
- The leaderboard scores that were requested. This is guaranteed to be non-null,
though it may be empty. The listener must close this object when finished.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-24 UTC."],[[["`Leaderboards.LoadScoresResult` is deprecated and `LeaderboardsClient.LeaderboardScores` should be used instead."],["It provides the result after leaderboard scores are loaded, including the leaderboard data and scores."],["Possible status codes indicate whether the loading was successful, encountered network issues, or had other errors."],["It includes methods like `getLeaderboard()` to retrieve the leaderboard and `getScores()` to access the scores."],["This result object should be released when no longer needed using the `release()` method."]]],["`Leaderboards.LoadScoresResult` is a deprecated interface, replaced by `LeaderboardsClient.LeaderboardScores`, that delivers results when leaderboard scores are loaded. Key actions include retrieving the associated leaderboard via `getLeaderboard()` and obtaining the requested scores using `getScores()`. It also returns a `Status` and can be `release()`-d. Status codes indicate success or errors like network issues, licensing problems, or internal errors. The returned scores will always be not-null, but could be empty.\n"]]