GamesMetadataClient

public class GamesMetadataClient extends GoogleApi<Games.GamesOptions>

A client to receive GamesMetadata.

Public Method Summary

Task<Game>
getCurrentGame()
Returns a Task which asynchronously loads the Game metadata for the current game from the local cache.
Task<AnnotatedData<Game>>
loadGame()
Returns a Task which asynchronously loads an annotated Game metadata for the current game.

Inherited Method Summary

Public Methods

public Task<Game> getCurrentGame ()

Returns a Task which asynchronously loads the Game metadata for the current game from the local cache.

The Task returned will not be null, but the Game returned from the Task may be null if the metadata is not available locally.

Required Scopes: SCOPE_GAMES_LITE

public Task<AnnotatedData<Game>> loadGame ()

Returns a Task which asynchronously loads an annotated Game metadata for the current game.

Required Scopes: SCOPE_GAMES_LITE