GamesMetadataClient
Stay organized with collections
Save and categorize content based on your preferences.
A client to receive GamesMetadata.
Public Methods
public abstract 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.
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 2024-10-31 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 2024-10-31 UTC."],[[["`GamesMetadataClient` provides methods to access game metadata."],["`getCurrentGame()` fetches the current game's metadata from the local cache asynchronously."],["`loadGame()` loads annotated metadata for the current game asynchronously."]]],["The `GamesMetadataClient` interface provides methods to retrieve game metadata. `getCurrentGame()` asynchronously loads the current game's metadata from the local cache, returning a Task that may contain a null Game if unavailable. `loadGame()` asynchronously loads annotated metadata for the current game, returning a Task with the relevant data. Both methods utilize Tasks to manage the asynchronous loading of Game data.\n"]]