public class

PlayerStatsClient

extends GoogleApi<Games.GamesOptions>
java.lang.Object
   ↳ com.google.android.gms.common.api.GoogleApi<com.google.android.gms.games.Games.GamesOptions>
     ↳ com.google.android.gms.games.PlayerStatsClient

Class Overview

A client to retrieve Player stats.

Summary

Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public 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.

Required Scopes: SCOPE_GAMES_LITE

Parameters
forceReload boolean: 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.
Returns
Task<AnnotatedData<PlayerStats>>