GamesMetadataClient | Doclava
public class

GamesMetadataClient

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

Class Overview

A client to receive GamesMetadata.

Summary

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

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

Returns
Task<Game>

public Task<AnnotatedData<Game>> loadGame ()

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

Required Scopes: SCOPE_GAMES_LITE

Returns
Task<AnnotatedData<Game>>