Stay organized with collections Save and categorize content based on your preferences.
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

Release the LeaderboardScoreBuffer used for scores storage.

Inherited Method Summary

Public Methods

public Leaderboard getLeaderboard ()

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

public LeaderboardScoreBuffer getScores ()

  • 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.