GamesMetadataClient

  • TheGamesMetadataClient interface is deprecated and developers should migrate to games v2.

  • Migration guidance is available in the migration guide linked within the content.

  • Both public methods,getCurrentGame() andloadGame(), are also deprecated.

  • getCurrentGame() loads current game metadata from the local cache, returning null if not available.

  • loadGame() asynchronously loads annotated game metadata for the current game.

public interfaceGamesMetadataClient

This interface is deprecated.
Consider migrating to the games v2. Refer to themigration guide.

A client to receive GamesMetadata.

Public Method Summary

abstract Task<Game>
getCurrentGame()
This method is deprecated. Consider migrating to the games v2. Refer to the migration guide.
abstract Task<AnnotatedData<Game>>
loadGame()
This method is deprecated. Consider migrating to the games v2. Refer to the migration guide.

Public Methods

public abstract Task<Game>getCurrentGame()

This method is deprecated.
Consider migrating to the games v2. Refer to themigration guide.

Returns aTask which asynchronously loads theGame metadata for the current game from the local cache.

TheTask returned will not be null, but theGame returned from theTask may be null if the metadata is not available locally.

public abstract Task<AnnotatedData<Game>>loadGame()

This method is deprecated.
Consider migrating to the games v2. Refer to themigration guide.

Returns aTask which asynchronously loads an annotatedGame metadata for the current game.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-23 UTC.