PlayerStatsClient
Stay organized with collections
Save and categorize content based on your preferences.
A client to retrieve Player stats.
Public Methods
public abstract Task<AnnotatedData<PlayerStats>>
loadPlayerStats (boolean
forceReload)
Returns a Task
which
asynchronously loads an annotated PlayerStats
for the currently signed-in player and game into a single result.
Parameters
forceReload |
If true , this call will clear any locally-cached data and attempt
to fetch the latest data from the server. This would commonly be used for something
like a user-initiated refresh. Normally, this should be set to false
to gain advantages of data caching. |
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 2025-06-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-23 UTC."],[[["\u003cp\u003e\u003ccode\u003ePlayerStatsClient\u003c/code\u003e provides access to player statistics data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eloadPlayerStats\u003c/code\u003e method retrieves player statistics for the currently signed-in player.\u003c/p\u003e\n"],["\u003cp\u003eYou can force a reload of player statistics data from the server using the \u003ccode\u003eforceReload\u003c/code\u003e parameter in \u003ccode\u003eloadPlayerStats\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# PlayerStatsClient\n\npublic interface **PlayerStatsClient** \nA client to retrieve Player stats. \n\n### Public Method Summary\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract Task\\\u003c[AnnotatedData](/android/reference/com/google/android/gms/games/AnnotatedData)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e\\\u003e | [loadPlayerStats](/android/reference/com/google/android/gms/games/PlayerStatsClient#loadPlayerStats(boolean))(boolean forceReload) Returns a [Task](/android/reference/com/google/android/gms/tasks/Task) which asynchronously loads an annotated [PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats) for the currently signed-in player and game into a single result. |\n\nPublic Methods\n--------------\n\n#### public abstract Task\\\u003c[AnnotatedData](/android/reference/com/google/android/gms/games/AnnotatedData)\\\u003c[PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\\\u003e\\\u003e\n**loadPlayerStats** (boolean forceReload)\n\nReturns a [Task](/android/reference/com/google/android/gms/tasks/Task) which\nasynchronously loads an annotated [PlayerStats](/android/reference/com/google/android/gms/games/stats/PlayerStats)\nfor the currently signed-in player and game into a single result. \n\n##### Parameters\n\n| forceReload | If `true`, this call will clear any locally-cached data and attempt to fetch the latest data from the server. This would commonly be used for something like a user-initiated refresh. Normally, this should be set to `false` to gain advantages of data caching. |\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]