Stay organized with collections
Save and categorize content based on your preferences.
GooglePlayGames.BasicApi.LeaderboardScoreData
Leaderboard score data.
Summary
This is the callback data when loading leaderboard scores. There are several SDK API calls needed to be made to collect all the required data, so this class is used to simplify the response.
Properties
|
ApproximateCount
|
ulong
Gets or sets the approximate count of scores in the leaderboard.
|
Id
|
string
Gets or sets the unique identifier of the leaderboard.
|
NextPageToken
|
Gets or sets the token for the next page of scores.
|
PlayerScore
|
IScore
Gets or sets the player's score in the leaderboard.
|
PrevPageToken
|
Gets or sets the token for the previous page of scores.
|
Scores
|
IScore[]
Gets an array of the scores in the leaderboard.
|
Status
|
Gets or sets the status of the leaderboard data response.
|
Title
|
string
Gets or sets the title of the leaderboard.
|
Valid
|
bool
Gets a value indicating whether the leaderboard data is valid.
|
Public functions
|
ToString()
|
override string
Returns a string representation of the leaderboard score data.
|
Properties
ApproximateCount
ulong ApproximateCount
Gets or sets the approximate count of scores in the leaderboard.
Id
string Id
Gets or sets the unique identifier of the leaderboard.
NextPageToken
ScorePageToken NextPageToken
Gets or sets the token for the next page of scores.
PlayerScore
IScore PlayerScore
Gets or sets the player's score in the leaderboard.
PrevPageToken
ScorePageToken PrevPageToken
Gets or sets the token for the previous page of scores.
Scores
IScore[] Scores
Gets an array of the scores in the leaderboard.
Status
ResponseStatus Status
Gets or sets the status of the leaderboard data response.
Title
string Title
Gets or sets the title of the leaderboard.
Valid
bool Valid
Gets a value indicating whether the leaderboard data is valid.
Public functions
ToString
override string ToString()
Returns a string representation of the leaderboard score data.
Details |
Returns
|
A string that represents the current object.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-08 UTC.
[null,null,["Last updated 2025-07-08 UTC."],[],[],null,["# GooglePlayGames.BasicApi.LeaderboardScoreData Class Reference\n\nGooglePlayGames.BasicApi.LeaderboardScoreData\n=============================================\n\nLeaderboard score data.\n\nSummary\n-------\n\nThis is the callback data when loading leaderboard scores. There are several SDK API calls needed to be made to collect all the required data, so this class is used to simplify the response.\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ApproximateCount](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a22e39433461f65361454259749245f23) | `ulong` Gets or sets the approximate count of scores in the leaderboard. |\n| [Id](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a69e8bcc9e5e9dadf7332b98def5be4c5) | `string` Gets or sets the unique identifier of the leaderboard. |\n| [NextPageToken](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1ad5ffb17923a2a32df7079a5b3e479490) | [ScorePageToken](/games/services/unity/v2/api/class/google-play-games/basic-api/score-page-token#class_google_play_games_1_1_basic_api_1_1_score_page_token) Gets or sets the token for the next page of scores. |\n| [PlayerScore](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a1ae2e9d33131efb1f941a72924053475) | `IScore` Gets or sets the player's score in the leaderboard. |\n| [PrevPageToken](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a524bcd556159e132edf8d47d46ee86f4) | [ScorePageToken](/games/services/unity/v2/api/class/google-play-games/basic-api/score-page-token#class_google_play_games_1_1_basic_api_1_1_score_page_token) Gets or sets the token for the previous page of scores. |\n| [Scores](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a62488970b6531faf907113f24df60cb7) | `IScore[]` Gets an array of the scores in the leaderboard. |\n| [Status](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a7f2d5bd39f97821a194f448084337c57) | [ResponseStatus](/games/services/unity/v2/api/namespace/google-play-games/basic-api#namespace_google_play_games_1_1_basic_api_1afc173c0f78ea77552386c8f699526dea) Gets or sets the status of the leaderboard data response. |\n| [Title](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a833d636f7549b0bc1e651d23c5a21f55) | `string` Gets or sets the title of the leaderboard. |\n| [Valid](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a57b3a848e5ed55d657543afd3a0a27ae) | `bool` Gets a value indicating whether the leaderboard data is valid. |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|\n| [ToString](#class_google_play_games_1_1_basic_api_1_1_leaderboard_score_data_1a5bcfc2e3a64bb70692c71c067629e63f)`()` | `override string` Returns a string representation of the leaderboard score data. |\n\nProperties\n----------\n\n### ApproximateCount\n\n```c#\nulong ApproximateCount\n``` \nGets or sets the approximate count of scores in the leaderboard. \n\n### Id\n\n```c#\nstring Id\n``` \nGets or sets the unique identifier of the leaderboard. \n\n### NextPageToken\n\n```c#\nScorePageToken NextPageToken\n``` \nGets or sets the token for the next page of scores. \n\n### PlayerScore\n\n```c#\nIScore PlayerScore\n``` \nGets or sets the player's score in the leaderboard. \n\n### PrevPageToken\n\n```c#\nScorePageToken PrevPageToken\n``` \nGets or sets the token for the previous page of scores. \n\n### Scores\n\n```c#\nIScore[] Scores\n``` \nGets an array of the scores in the leaderboard. \n\n### Status\n\n```c#\nResponseStatus Status\n``` \nGets or sets the status of the leaderboard data response. \n\n### Title\n\n```c#\nstring Title\n``` \nGets or sets the title of the leaderboard. \n\n### Valid\n\n```c#\nbool Valid\n``` \nGets a value indicating whether the leaderboard data is valid.\n\nPublic functions\n----------------\n\n### ToString\n\n```c#\noverride string ToString()\n``` \nReturns a string representation of the leaderboard score data.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|----------------------------------------------|\n| **Returns** | A string that represents the current object. |"]]