Play Games Services Sign-In
Native API for Play Games Services Sign-In.
Summary
Typedefs |
|
|---|---|
PgsGamesSignInClient_IsAuthenticatedCallback)(PgsStatusCode status_code, bool is_authenticated, void *user_data)
|
typedefvoid(*
Callback for PgsGamesSignInClient_isAuthenticated. |
PgsGamesSignInClient_RequestServerSideAccessCallback)(PgsStatusCode status_code, const char *auth_code, void *user_data)
|
typedefvoid(*
Callback for PgsGamesSignInClient_requestServerSideAccess. |
PgsGamesSignInClient_RequestServerSideAccessWithScopesCallback)(PgsStatusCode status_code, const char *auth_code, PgsAuthScope *granted_scopes, int32_t granted_scopes_count, void *user_data)
|
typedefvoid(*
Callback for PgsGamesSignInClient_requestServerSideAccessWithScopes. |
PgsGamesSignInClient_SignInCallback)(PgsStatusCode status_code, bool is_authenticated, void *user_data)
|
typedefvoid(*
Callback for PgsGamesSignInClient_signIn. |
Functions |
|
|---|---|
PgsGamesSignInClient_isAuthenticated(PgsGamesSignInClient *client, PgsGamesSignInClient_IsAuthenticatedCallback callback, void *user_data)
|
void
Checks if the player is currently authenticated with Play Games Services.
|
PgsGamesSignInClient_requestServerSideAccess(PgsGamesSignInClient *client, const char *server_client_id, bool force_refresh_token, PgsGamesSignInClient_RequestServerSideAccessCallback callback, void *user_data)
|
void
Retrieves the OAuth 2.0 server-side access code for the client ID specified in the Google Play Console.
|
PgsGamesSignInClient_requestServerSideAccessWithScopes(PgsGamesSignInClient *client, const char *server_client_id, bool force_refresh_token, const PgsAuthScope *scopes, int32_t scopes_count, PgsGamesSignInClient_RequestServerSideAccessWithScopesCallback callback, void *user_data)
|
void
Retrieves the OAuth 2.0 server-side access code for the client ID specified in the Google Play Console, with additional OAuth scopes.
|
PgsGamesSignInClient_signIn(PgsGamesSignInClient *client, PgsGamesSignInClient_SignInCallback callback, void *user_data)
|
void
Manually requests that your game sign in with Play Games Services.
|
Typedefs
PgsGamesSignInClient_IsAuthenticatedCallback
void(* PgsGamesSignInClient_IsAuthenticatedCallback)(PgsStatusCode status_code, bool is_authenticated, void *user_data)
Callback for PgsGamesSignInClient_isAuthenticated.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
PgsGamesSignInClient_RequestServerSideAccessCallback
void(* PgsGamesSignInClient_RequestServerSideAccessCallback)(PgsStatusCode status_code, const char *auth_code, void *user_data)
Callback for PgsGamesSignInClient_requestServerSideAccess.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
PgsGamesSignInClient_RequestServerSideAccessWithScopesCallback
void(* PgsGamesSignInClient_RequestServerSideAccessWithScopesCallback)(PgsStatusCode status_code, const char *auth_code, PgsAuthScope *granted_scopes, int32_t granted_scopes_count, void *user_data)
Callback for PgsGamesSignInClient_requestServerSideAccessWithScopes.
| Details | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Parameters |
|
PgsGamesSignInClient_SignInCallback
void(* PgsGamesSignInClient_SignInCallback)(PgsStatusCode status_code, bool is_authenticated, void *user_data)
Callback for PgsGamesSignInClient_signIn.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
Functions
PgsGamesSignInClient_isAuthenticated
void PgsGamesSignInClient_isAuthenticated( PgsGamesSignInClient *client, PgsGamesSignInClient_IsAuthenticatedCallback callback, void *user_data )
Checks if the player is currently authenticated with Play Games Services.
The result is provided asynchronously via the callback.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
PgsGamesSignInClient_requestServerSideAccess
void PgsGamesSignInClient_requestServerSideAccess( PgsGamesSignInClient *client, const char *server_client_id, bool force_refresh_token, PgsGamesSignInClient_RequestServerSideAccessCallback callback, void *user_data )
Retrieves the OAuth 2.0 server-side access code for the client ID specified in the Google Play Console.
| Details | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Parameters |
|
PgsGamesSignInClient_requestServerSideAccessWithScopes
void PgsGamesSignInClient_requestServerSideAccessWithScopes( PgsGamesSignInClient *client, const char *server_client_id, bool force_refresh_token, const PgsAuthScope *scopes, int32_t scopes_count, PgsGamesSignInClient_RequestServerSideAccessWithScopesCallback callback, void *user_data )
Retrieves the OAuth 2.0 server-side access code for the client ID specified in the Google Play Console, with additional OAuth scopes.
| Details | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Parameters |
|
PgsGamesSignInClient_signIn
void PgsGamesSignInClient_signIn( PgsGamesSignInClient *client, PgsGamesSignInClient_SignInCallback callback, void *user_data )
Manually requests that your game sign in with Play Games Services.
Note that a sign-in attempt will be made automatically when your game starts. Games will only need to manually request to sign in if the automatic sign-in attempt failed.
The result, including whether the user is authenticated, is provided asynchronously via the callback.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|