public static class

LeaderboardsClient.LeaderboardScores

extends Object
implements Releasable
java.lang.Object
   ↳ com.google.android.gms.games.LeaderboardsClient.LeaderboardScores

Class Overview

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.

Summary

Public Methods
Leaderboard getLeaderboard()
LeaderboardScoreBuffer getScores()
void release()
Release the LeaderboardScoreBuffer used for scores storage.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.android.gms.common.api.Releasable

Public Methods

public Leaderboard getLeaderboard ()

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

public LeaderboardScoreBuffer getScores ()

Returns
LeaderboardScoreBuffer 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.