| Modifier and Type | Class and Description |
|---|---|
class |
Games.Scores.Get |
class |
Games.Scores.List |
class |
Games.Scores.ListWindow |
class |
Games.Scores.Submit |
class |
Games.Scores.SubmitMultiple |
| Constructor and Description |
|---|
Scores() |
| Modifier and Type | Method and Description |
|---|---|
Games.Scores.Get |
get(String playerId,
String leaderboardId,
String timeSpan)
Get high scores, and optionally ranks, in leaderboards for the currently authenticated player.
|
Games.Scores.List |
list(String leaderboardId,
String collection,
String timeSpan)
Lists the scores in a leaderboard, starting from the top.
|
Games.Scores.ListWindow |
listWindow(String leaderboardId,
String collection,
String timeSpan)
Lists the scores in a leaderboard around (and including) a player's score.
|
Games.Scores.Submit |
submit(String leaderboardId,
Long score)
Submits a score to the specified leaderboard.
|
Games.Scores.SubmitMultiple |
submitMultiple(PlayerScoreSubmissionList content)
Submits multiple scores to leaderboards.
|
public Games.Scores.Get get(String playerId, String leaderboardId, String timeSpan) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.playerId - A player ID. A value of `me` may be used in place of the authenticated player's ID.leaderboardId - The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this
application.timeSpan - The time span for the scores and ranks you're requesting.IOExceptionpublic Games.Scores.List list(String leaderboardId, String collection, String timeSpan) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.leaderboardId - The ID of the leaderboard.collection - The collection of scores you're requesting.timeSpan - Required. The time span for the scores and ranks you're requesting.IOExceptionpublic Games.Scores.ListWindow listWindow(String leaderboardId, String collection, String timeSpan) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.leaderboardId - The ID of the leaderboard.collection - The collection of scores you're requesting.timeSpan - Required. The time span for the scores and ranks you're requesting.IOExceptionpublic Games.Scores.Submit submit(String leaderboardId, Long score) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.leaderboardId - The ID of the leaderboard.score - Required. The score you're submitting. The submitted score is ignored if it is worse than a
previously submitted score, where worse depends on the leaderboard sort order. The meaning
of the score value depends on the leaderboard format type. For fixed-point, the score
represents the raw value. For time, the score represents elapsed time in milliseconds. For
currency, the score represents a value in micro units.IOExceptionpublic Games.Scores.SubmitMultiple submitMultiple(PlayerScoreSubmissionList content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the PlayerScoreSubmissionListIOExceptionCopyright © 2011–2025 Google. All rights reserved.