Stay organized with collections
Save and categorize content based on your preferences.
google::play::games::recall::GamesRecallClient
#include <games/recall/client.h>
Entrypoint for the Google Play Games Services Recall API.
Summary
The Recall API lets games with their own sign-in system to offer a more seamless sign-in experience for Google Play Games Services users.
It does this by allowing the game to manage links between its own in-game accounts and Google Play Games Services (PGS) users. These links can queried by the game's server to streamline the sign-in process for returning users across different devices or after reinstalling the game on the same device.
Public functions
|
RequestRecallAccess(RequestRecallAccessContinuation continuation)
|
void
Requests recall access from Play Games Services.
|
Public functions
GamesRecallClient
GamesRecallClient()
RequestRecallAccess
void RequestRecallAccess(
RequestRecallAccessContinuation continuation
)
Requests recall access from Play Games Services.
If successful, returns a recall session ID which can be used by your backend to make server-side calls to Google for linking & unlinking your in-game accounts with a Play Games Services user.
For first-time users, use the recall session ID to link their in-game account with a Play Games Services user. This sets up the user for a seamless sign-in experience when they return to your game across different devices or after reinstalling your game on the same device.
For returning users, use the recall session ID to resolve which in-game account is already linked and seamlessly restore the user's progress without requiring them to sign-in to their in-game account again.
Details |
Parameters |
continuation
|
The continuation callback.
|
|
~GamesRecallClient
~GamesRecallClient()
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-05-23 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-05-23 UTC."],[],[],null,["# google::play::games::recall::GamesRecallClient Class Reference\n\ngoogle::play::games::recall::GamesRecallClient\n==============================================\n\n\n`#include \u003cgames/recall/client.h\u003e`\n\nEntrypoint for the Google Play Games Services Recall API.\n\nSummary\n-------\n\nThe Recall API lets games with their own sign-in system to offer a more seamless sign-in experience for Google Play Games Services users.\n\nIt does this by allowing the game to manage links between its own in-game accounts and Google Play Games Services (PGS) users. These links can queried by the game's server to streamline the sign-in process for returning users across different devices or after reinstalling the game on the same device.\n\n| ### Constructors and Destructors ||\n|---|---|\n| [GamesRecallClient](#classgoogle_1_1play_1_1games_1_1recall_1_1_games_recall_client_1ab4fab47432d3f242c2c55d08c29da81a)`()` ||\n| [~GamesRecallClient](#classgoogle_1_1play_1_1games_1_1recall_1_1_games_recall_client_1acdb8eef9d176d4ee90a3f850d218ae92)`()` ||\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| [RequestRecallAccess](#classgoogle_1_1play_1_1games_1_1recall_1_1_games_recall_client_1ac5841501e01695c4cfbc1b9680532bc7)`(RequestRecallAccessContinuation continuation)` | `void` Requests recall access from Play Games Services. |\n\nPublic functions\n----------------\n\n### GamesRecallClient\n\n```text\n GamesRecallClient()\n``` \n\n### RequestRecallAccess\n\n```text\nvoid RequestRecallAccess(\n RequestRecallAccessContinuation continuation\n)\n``` \nRequests recall access from Play Games Services.\n\nIf successful, returns a recall session ID which can be used by your backend to make server-side calls to Google for linking \\& unlinking your in-game accounts with a Play Games Services user.\n\nFor first-time users, use the recall session ID to link their in-game account with a Play Games Services user. This sets up the user for a seamless sign-in experience when they return to your game across different devices or after reinstalling your game on the same device.\n\nFor returning users, use the recall session ID to resolve which in-game account is already linked and seamlessly restore the user's progress without requiring them to sign-in to their in-game account again.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|----------------------------| | `continuation` | The continuation callback. | |\n\n### \\~GamesRecallClient\n\n```text\n ~GamesRecallClient()\n```"]]