PlayerStatsClient

public interfacePlayerStatsClient

A client to retrieve Player stats.

Public Method Summary

abstractTask<AnnotatedData<PlayerStats>>
loadPlayerStats(boolean forceReload)
Returns aTask which asynchronously loads an annotated PlayerStatsfor the currently signed-in player and game into a single result.

Public Methods

public abstractTask<AnnotatedData<PlayerStats>> loadPlayerStats(boolean forceReload)

Returns aTaskwhich asynchronously loads an annotatedPlayerStats for the currently signed-in player and game into a single result.

Parameters
forceReload Iftrue,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 tofalse to gain advantages of data caching.