Following the deprecation of the Google Sign-In
API, we are removing the games v1 SDK in 2026. After February 2025, you will be unable to publish titles that are newly integrated with games v1 SDK, on Google Play. We recommend that you use the games v2 SDK instead.While existing titles with the previous games v1 integrations continue to function for a couple of years, you are encouraged to migrate to v2
starting June 2025.
Stats
Stay organized with collections
Save and categorize content based on your preferences.
This interface is deprecated.
Use PlayerStatsClient
instead
Entry point for stats functionality.
Public Method Summary
loadPlayerStats
( GoogleApiClient
apiClient, boolean forceReload) Asynchronously load the player stats data for the currently signed-in player
and game into a single result.
Public Methods
Asynchronously load the player stats data for the currently signed-in player and
game into a single result.
Required API: Games.API
Required Scopes: Games.SCOPE_GAMES
Parameters
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-01-24 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-01-24 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eStats\u003c/code\u003e interface is deprecated and developers should use \u003ccode\u003ePlayerStatsClient\u003c/code\u003e instead.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStats\u003c/code\u003e provided an entry point for stats functionality, primarily for loading player stats data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eloadPlayerStats\u003c/code\u003e method allowed asynchronous loading of player stats data for the signed-in player.\u003c/p\u003e\n"],["\u003cp\u003eTo use \u003ccode\u003eStats\u003c/code\u003e, the \u003ccode\u003eGames.API\u003c/code\u003e was required along with the \u003ccode\u003eGames.SCOPE_GAMES\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["The `Stats` interface is deprecated; use `PlayerStatsClient` instead. It provided an entry point for stats functionality, specifically to asynchronously load a signed-in player's stats data. The `loadPlayerStats` method required a `GoogleApiClient` and a boolean `forceReload` parameter to specify if cached data should be bypassed. It returns a `PendingResult` to access the stats, requiring the `Games.API` and `Games.SCOPE_GAMES`. A `Stats.LoadPlayerStatsResult` is deprecated and the `PlayerStats` is now returned by `PlayerStatsClient`.\n"],null,["# Stats\n\npublic interface **Stats** \n**This interface is deprecated.** \n\nUse [PlayerStatsClient](/android/games_v1/reference/com/google/android/gms/games/PlayerStatsClient)\ninstead\n\nEntry point for stats functionality. \n\n### Nested Class Summary\n\n|-----------|---|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| interface | [Stats.LoadPlayerStatsResult](/android/games_v1/reference/com/google/android/gms/games/stats/Stats.LoadPlayerStatsResult) || *This interface is deprecated. [PlayerStats](/android/games_v1/reference/com/google/android/gms/games/stats/PlayerStats) is returned directly in the [PlayerStatsClient](/android/games_v1/reference/com/google/android/gms/games/PlayerStatsClient).* |\n\n### Public Method Summary\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [PendingResult](/android/reference/com/google/android/gms/common/api/PendingResult)\\\u003c[Stats.LoadPlayerStatsResult](/android/games_v1/reference/com/google/android/gms/games/stats/Stats.LoadPlayerStatsResult)\\\u003e | [loadPlayerStats](/android/games_v1/reference/com/google/android/gms/games/stats/Stats#loadPlayerStats(com.google.android.gms.common.api.GoogleApiClient,%20boolean))([GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient, boolean forceReload) Asynchronously load the player stats data for the currently signed-in player and game into a single result. |\n\nPublic Methods\n--------------\n\n#### public abstract [PendingResult](/android/reference/com/google/android/gms/common/api/PendingResult)\\\u003c[Stats.LoadPlayerStatsResult](/android/games_v1/reference/com/google/android/gms/games/stats/Stats.LoadPlayerStatsResult)\\\u003e\n**loadPlayerStats** ([GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient, boolean forceReload)\n\nAsynchronously load the player stats data for the currently signed-in player and\ngame into a single result.\n\nRequired API: [Games.API](/android/games_v1/reference/com/google/android/gms/games/Games#API) \n\n\nRequired Scopes: [Games.SCOPE_GAMES](/android/games_v1/reference/com/google/android/gms/games/Games#SCOPE_GAMES) \n\n##### Parameters\n\n| apiClient | The [GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) to service the call. |\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|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- [PendingResult](/android/reference/com/google/android/gms/common/api/PendingResult) to access the data when available."]]