GamesMetadataClient
Stay organized with collections
Save and categorize content based on your preferences.
This interface is deprecated.
Consider migrating to the games v2. Refer to the migration
guide.
A client to receive GamesMetadata.
Public Methods
public abstract Task<Game>
getCurrentGame ()
This method is deprecated.
Consider migrating to the games v2. Refer to the migration
guide.
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.
public abstract Task<AnnotatedData<Game>>
loadGame ()
This method is deprecated.
Consider migrating to the games v2. Refer to the migration
guide.
Returns a Task
which asynchronously loads an annotated Game
metadata for the current game.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eGamesMetadataClient\u003c/code\u003e provides methods to retrieve game metadata.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetCurrentGame()\u003c/code\u003e fetches game metadata from the local cache asynchronously.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eloadGame()\u003c/code\u003e retrieves annotated game metadata asynchronously.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTask\u003c/code\u003e returned by these methods will never be null, but the \u003ccode\u003eGame\u003c/code\u003e data might be null if unavailable.\u003c/p\u003e\n"]]],["The `GamesMetadataClient` interface provides methods to retrieve game metadata. `getCurrentGame()` asynchronously loads `Game` metadata from the local cache, potentially returning null if not available. `loadGame()` asynchronously fetches annotated `Game` metadata, returning a `Task` that provides the information. Both methods rely on `Task` objects to handle the asynchronous nature of loading data.\n"],null,[]]