AI-generated Key Takeaways
-
PlayerStatsClientis an interface used to retrieve player statistics. -
The
loadPlayerStatsmethod asynchronously loads player statistics for the currently signed-in player and game. -
The
loadPlayerStatsmethod returns aTaskobject containing annotated player stats. -
The
forceReloadparameter inloadPlayerStatscan be used to clear cached data and fetch the latest data from the server.
A client to retrieve Player stats.
Public Method Summary
Task
which asynchronously loads an annotated PlayerStats
for the currently signed-in player and game into a single result.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
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.
