Page Summary
-
LeaderboardsClient.LeaderboardScoresrepresents the result delivered when leaderboard scores are loaded. -
It is required to call
release()on this object or the result ofgetScores()when finished with theLeaderboardScoreBuffer. -
You can retrieve the associated leaderboard using
getLeaderboard(). -
The requested leaderboard scores can be accessed using
getScores(), which returns aLeaderboardScoreBuffer.
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 |
getLeaderboard()
Returns the leaderboard that the requested scores belong to.
|
| LeaderboardScoreBuffer |
getScores()
Returns the leaderboard scores that were requested.
|
| 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.