Google is committed to advancing racial equity for Black communities. See how.

LeaderboardsClient.LeaderboardScores

public static class LeaderboardsClient.LeaderboardScores extends Object
implements Releasable

Result delivered when leaderboard scores have been loaded.

It is required to call release() on this object or on the result of getScores() when finished with the LeaderboardScoreBuffer.

Public Method Summary

Leaderboard
LeaderboardScoreBuffer
void
release()
Release the LeaderboardScoreBuffer used for scores storage.

Inherited Method Summary

Public Methods

public Leaderboard getLeaderboard ()

Returns
  • The leaderboard that the requested scores belong to. This may be null if the leaderboard metadata could not be found.

public LeaderboardScoreBuffer getScores ()

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.

public void release ()

Release the LeaderboardScoreBuffer used for scores storage.

Note that using LeaderboardScoreBuffer after calling this method will result in an error.