com.google.android.gms.games.leaderboard.LeaderboardScore |
Data interface representing a single score on a leaderboard.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Load the formatted display rank into the given
CharArrayBuffer . | |||||||||||
Retrieves a formatted string to display for this rank.
| |||||||||||
Retrieves a formatted string to display for this score.
| |||||||||||
Loads the formatted display score into the given
CharArrayBuffer . | |||||||||||
Retrieves the rank returned from the server for this score.
| |||||||||||
Retrieves the raw score value.
| |||||||||||
Retrieves the player that scored this particular score.
| |||||||||||
Load the display name of the player who scored this score into the provided
CharArrayBuffer . | |||||||||||
Retrieves the name to display for the player who scored this score.
| |||||||||||
Retrieves the URI of the hi-res image to display for the player who scored this score.
| |||||||||||
Retrieves the URI of the icon image to display for the player who scored this score.
| |||||||||||
Retrieve the optional score tag associated with this score, if any.
| |||||||||||
Retrieves the timestamp (in milliseconds from epoch) at which this score was achieved.
|
[Expand]
Inherited Methods | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.android.gms.common.data.Freezable
|
Load the formatted display rank into the given CharArrayBuffer
.
dataOut | The buffer to load the data into. |
---|
Retrieves a formatted string to display for this rank. This handles appropriate localization and formatting.
Retrieves a formatted string to display for this score. The details of the formatting are specified by the developer in their dev console.
Loads the formatted display score into the given CharArrayBuffer
.
dataOut | The buffer to load the data into. |
---|
Retrieves the rank returned from the server for this score. Note that this may not be exact and that multiple scores can have identical ranks. Lower ranks indicate a better score, with rank 1 being the best score on the board.
Retrieves the raw score value.
Retrieves the player that scored this particular score. The return value here may be null if the current player is not authorized to see information about the holder of this score.
Note that this object is a volatile representation, so it is not safe to cache the output of
this directly. Instead, cache the result of freeze()
.
Load the display name of the player who scored this score into the provided
CharArrayBuffer
.
dataOut | The buffer to load the data into. |
---|
Retrieves the name to display for the player who scored this score. If the identity of the player is unknown, this will return an anonymous name to display.
Retrieves the URI of the hi-res image to display for the player who scored this score. If the identity of the player is unknown, this will return null. It may also be null if the player simply has no image.
To retrieve the Image from theUri
, use ImageManager
.Retrieves the URI of the icon image to display for the player who scored this score. If the identity of the player is unknown, this will return an anonymous image for the player. It may also be null if the player simply has no image.
To retrieve the Image from theUri
, use ImageManager
.Retrieve the optional score tag associated with this score, if any.
Retrieves the timestamp (in milliseconds from epoch) at which this score was achieved.