Stay organized with collections
Save and categorize content based on your preferences.
firebase::auth::GameCenterAuthProvider
#include <credential.h>
GameCenter (Apple) auth provider.
Summary
Public static attributes
|
kProviderId
|
const char *const
The string used to identify this provider.
|
Public static attributes
kProviderId
const char *const kProviderId
The string used to identify this provider.
Public static functions
GetCredential
Future< Credential > GetCredential()
Generate a credential from GameCenter for the current user.
Details |
Returns
|
a Future that will be fulfilled with the resulting credential.
|
IsPlayerAuthenticated
bool IsPlayerAuthenticated()
Tests to see if the current user is signed in to GameCenter.
Details |
Returns
|
true if the user is signed in, false otherwise.
|
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-01-23 UTC.
[null,null,["Last updated 2024-01-23 UTC."],[],[],null,["# firebase::auth::GameCenterAuthProvider Class Reference\n\nfirebase::auth::GameCenterAuthProvider\n======================================\n\n\n`#include \u003ccredential.h\u003e`\n\nGameCenter (Apple) auth provider.\n\nSummary\n-------\n\n| ### Public static attributes ||\n|--------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| [kProviderId](#classfirebase_1_1auth_1_1_game_center_auth_provider_1a9139fca14c3e2daa5777221c1d79a358) | `const char *const` The string used to identify this provider. |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetCredential](#classfirebase_1_1auth_1_1_game_center_auth_provider_1a6f8aaecaa1c4ff81e057de69a20cc2b3)`()` | [Future](/docs/reference/cpp/class/firebase/future#classfirebase_1_1_future)`\u003c `[Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential)` \u003e` Generate a credential from GameCenter for the current user. |\n| [GetCredentialLastResult](#classfirebase_1_1auth_1_1_game_center_auth_provider_1a67f2b1e97aeeec6ebbcc082b64473c6a)`()` | [Future](/docs/reference/cpp/class/firebase/future#classfirebase_1_1_future)`\u003c `[Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential)` \u003e` Get the result of the most recent [GetCredential()](/docs/reference/cpp/class/firebase/auth/game-center-auth-provider#classfirebase_1_1auth_1_1_game_center_auth_provider_1a6f8aaecaa1c4ff81e057de69a20cc2b3) call. |\n| [IsPlayerAuthenticated](#classfirebase_1_1auth_1_1_game_center_auth_provider_1ab56ee9c4d887bc7207c03579dd6a5796)`()` | `bool` Tests to see if the current user is signed in to GameCenter. |\n\nPublic static attributes\n------------------------\n\n### kProviderId\n\n```c++\nconst char *const kProviderId\n``` \nThe string used to identify this provider.\n\nPublic static functions\n-----------------------\n\n### GetCredential\n\n```c++\nFuture\u003c Credential \u003e GetCredential()\n``` \nGenerate a credential from GameCenter for the current user.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | a [Future](/docs/reference/cpp/class/firebase/future#classfirebase_1_1_future) that will be fulfilled with the resulting credential. |\n\n### GetCredentialLastResult\n\n```c++\nFuture\u003c Credential \u003e GetCredentialLastResult()\n``` \nGet the result of the most recent [GetCredential()](/docs/reference/cpp/class/firebase/auth/game-center-auth-provider#classfirebase_1_1auth_1_1_game_center_auth_provider_1a6f8aaecaa1c4ff81e057de69a20cc2b3) call.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | an object which can be used to retrieve the [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential). |\n\n### IsPlayerAuthenticated\n\n```c++\nbool IsPlayerAuthenticated()\n``` \nTests to see if the current user is signed in to GameCenter.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------|\n| **Returns** | true if the user is signed in, false otherwise. |"]]