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 2024-10-31 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 2024-10-31 UTC."],[[["`PlayerStatsClient` provides access to player statistics data."],["The `loadPlayerStats` method retrieves player statistics for the currently signed-in player."],["You can force a reload of player statistics data from the server using the `forceReload` parameter in `loadPlayerStats`."]]],[]]