Following the deprecation of the Google Sign-In API, we are removing the games v1 SDK in 2026. After February 2025, you will be unable to publish titles that are newly integrated with games v1 SDK, on Google Play. We recommend that you use the games v2 SDK instead.
While existing titles with the previous games v1 integrations continue to function for a couple of years, you are encouraged to migrate to v2 starting June 2025.
GamesMetadata
Stay organized with collections
Save and categorize content based on your preferences.
This interface is deprecated.
Use GamesMetadataClient
instead
Entry point for game metadata functionality.
Public Methods
public abstract Game
getCurrentGame (GoogleApiClient
apiClient)
Returns
Game
metadata for the current game. May be null if the metadata is not available
locally.
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-01-24 UTC.
[null,null,["Last updated 2025-01-24 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGamesMetadata\u003c/code\u003e interface is deprecated; use \u003ccode\u003eGamesMetadataClient\u003c/code\u003e instead for game metadata functionality.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to access metadata for the current game, such as \u003ccode\u003egetCurrentGame\u003c/code\u003e and \u003ccode\u003eloadGame\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetCurrentGame\u003c/code\u003e retrieves locally available metadata, while \u003ccode\u003eloadGame\u003c/code\u003e loads the details.\u003c/p\u003e\n"],["\u003cp\u003eBoth methods require the \u003ccode\u003eGames.API\u003c/code\u003e and \u003ccode\u003eGames.SCOPE_GAMES\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["The `GamesMetadata` interface is deprecated and replaced by `GamesMetadataClient`. It provides access to game metadata through `getCurrentGame`, which retrieves the current game's metadata, and `loadGame`, which loads the current game's details. Both methods require a `GoogleApiClient` and the `Games.API` with `Games.SCOPE_GAMES`. `getCurrentGame` returns `Game` metadata, while `loadGame` returns a `PendingResult` to obtain data when available.\n"],null,["# GamesMetadata\n\npublic interface **GamesMetadata** \n**This interface is deprecated.** \n\nUse [GamesMetadataClient](/android/games_v1/reference/com/google/android/gms/games/GamesMetadataClient)\ninstead\n\nEntry point for game metadata functionality. \n\n### Nested Class Summary\n\n|-----------|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| interface | [GamesMetadata.LoadGamesResult](/android/games_v1/reference/com/google/android/gms/games/GamesMetadata.LoadGamesResult) || *This interface is deprecated. [GameBuffer](/android/games_v1/reference/com/google/android/gms/games/GameBuffer) is returned directly in the [GamesMetadataClient](/android/games_v1/reference/com/google/android/gms/games/GamesMetadataClient).* |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Game](/android/games_v1/reference/com/google/android/gms/games/Game) | [getCurrentGame](/android/games_v1/reference/com/google/android/gms/games/GamesMetadata#getCurrentGame(com.google.android.gms.common.api.GoogleApiClient))([GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient) Gets the metadata for the current game, if available. |\n| abstract [PendingResult](/android/reference/com/google/android/gms/common/api/PendingResult)\\\u003c[GamesMetadata.LoadGamesResult](/android/games_v1/reference/com/google/android/gms/games/GamesMetadata.LoadGamesResult)\\\u003e | [loadGame](/android/games_v1/reference/com/google/android/gms/games/GamesMetadata#loadGame(com.google.android.gms.common.api.GoogleApiClient))([GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient) Loads the details for the current game. |\n\nPublic Methods\n--------------\n\n#### public abstract [Game](/android/games_v1/reference/com/google/android/gms/games/Game)\n**getCurrentGame** ([GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient)\n\nGets the metadata for the current game, if available.\n\nRequired API: [Games.API](/android/games_v1/reference/com/google/android/gms/games/Games#API) \n\n\nRequired Scopes: [Games.SCOPE_GAMES](/android/games_v1/reference/com/google/android/gms/games/Games#SCOPE_GAMES) \n\n##### Parameters\n\n| apiClient | The [GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) to service the call. |\n|-----------|------------------------------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- [Game](/android/games_v1/reference/com/google/android/gms/games/Game) metadata for the current game. May be null if the metadata is not available locally. \n\n#### public abstract [PendingResult](/android/reference/com/google/android/gms/common/api/PendingResult)\\\u003c[GamesMetadata.LoadGamesResult](/android/games_v1/reference/com/google/android/gms/games/GamesMetadata.LoadGamesResult)\\\u003e\n**loadGame** ([GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient)\n\nLoads the details for the current game.\n\nRequired API: [Games.API](/android/games_v1/reference/com/google/android/gms/games/Games#API) \n\n\nRequired Scopes: [Games.SCOPE_GAMES](/android/games_v1/reference/com/google/android/gms/games/Games#SCOPE_GAMES) \n\n##### Parameters\n\n| apiClient | The [GoogleApiClient](/android/reference/com/google/android/gms/common/api/GoogleApiClient) to service the call. |\n|-----------|------------------------------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- [PendingResult](/android/reference/com/google/android/gms/common/api/PendingResult) to access the data when available."]]