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.
com.google.android.gms.games
Contains the games client class.
Annotations
Interfaces
Classes
Exceptions
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."],[[["The Games API provides access to various functionalities such as achievements, events, leaderboards, player information, and saved games."],["The `Games` class serves as the main entry point for accessing these functionalities."],["Several client classes, like `AchievementsClient`, `LeaderboardsClient`, and `PlayersClient`, offer specific interactions within their respective domains."],["The API includes data structures and interfaces to manage and retrieve game and player data, such as `Game`, `Player`, `GameBuffer`, and `PlayerBuffer`."],["Developers can utilize the API for creating, loading, and resolving conflicts with saved games through the `SnapshotsClient` and its associated classes."]]],["This content details the Google Play Games services' client-side functionalities for Android. It defines various interfaces and classes that allow interaction with game-related features. Key actions involve using clients like `AchievementsClient`, `EventsClient`, `GamesClient`, `LeaderboardsClient`, `PlayersClient`, `SnapshotsClient`, and `GamesMetadataClient`. It supports retrieving player and game data, accessing leaderboards, handling snapshots, managing achievements and events, and accessing metadata. Also managing pagination and conflict resolution and error handling.\n"]]