com.google.android.gms.games.leaderboard.Leaderboard |
Data interface for leaderboard metadata.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | SCORE_ORDER_LARGER_IS_BETTER | Score order constant for leaderboards where scores are sorted in descending order. | |||||||||
int | SCORE_ORDER_SMALLER_IS_BETTER | Score order constant for leaderboards where scores are sorted in ascending order. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the display name of this leaderboard.
| |||||||||||
Loads this leaderboard's display name into the given
CharArrayBuffer . | |||||||||||
Retrieves an image URI that can be used to load this leaderboard's icon, or null if there was
a problem retrieving the icon.
| |||||||||||
Retrieves the ID of this leaderboard.
| |||||||||||
Retrieves the sort order of scores for this leaderboard.
| |||||||||||
Retrieves the
LeaderboardVariant s for this leaderboard. |
Score order constant for leaderboards where scores are sorted in descending order.
Score order constant for leaderboards where scores are sorted in ascending order.
Retrieves the display name of this leaderboard.
Loads this leaderboard's display name into the given CharArrayBuffer
.
dataOut | The buffer to load the data into. |
---|
Retrieves an image URI that can be used to load this leaderboard's icon, or null if there was a problem retrieving the icon.
To retrieve the Image from theUri
, use ImageManager
.Retrieves the ID of this leaderboard.
Retrieves the sort order of scores for this leaderboard. Possible values are
SCORE_ORDER_LARGER_IS_BETTER
or SCORE_ORDER_SMALLER_IS_BETTER
.
Retrieves the LeaderboardVariant
s for this leaderboard. These will be returned
sorted by time span first, then by variant type.
Note that these variants are volatile, and are tied to the lifetime of the original buffer.
LeaderboardVariant
s for this leaderboard.