REST Resource: leaderboards
Stay organized with collections
Save and categorize content based on your preferences.
Resource: Leaderboard
The Leaderboard resource.
JSON representation |
{
"kind": string,
"id": string,
"name": string,
"iconUrl": string,
"isIconUrlDefault": boolean,
"order": enum (ScoreOrder )
} |
Fields |
kind |
string
Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboard .
|
id |
string
The leaderboard ID.
|
name |
string
The name of the leaderboard.
|
iconUrl |
string
The icon for the leaderboard.
|
isIconUrlDefault |
boolean
Indicates whether the icon image being returned is a default image, or is game-provided.
|
order |
enum (ScoreOrder )
How scores are ordered.
|
ScoreOrder
Enums |
LARGER_IS_BETTER |
Larger values are better; scores are sorted in descending order |
SMALLER_IS_BETTER |
Smaller values are better; scores are sorted in ascending order |
Methods |
|
Retrieves the metadata of the leaderboard with the given ID. |
|
Lists all the leaderboard metadata for your application. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-09-19 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]