public class PlayGamesAuthProvider extends Object
Represents the Google Play Games authentication provider. Use this class to obtain
PlayGamesAuthCredential
s.
Constant Summary
String | PLAY_GAMES_SIGN_IN_METHOD | Unique string identifier for Google Play Games Service sign-in method. |
String | PROVIDER_ID | Unique string identifier for this provider type. |
Public Method Summary
static AuthCredential |
getCredential(String
serverAuthCode)
Returns a new instance of
AuthCredential
that wraps a Play Games Server Auth Code.
|
Inherited Method Summary
Constants
public static final String PLAY_GAMES_SIGN_IN_METHOD
Unique string identifier for Google Play Games Service sign-in method.
Constant Value:
"playgames.google.com"
public static final String PROVIDER_ID
Unique string identifier for this provider type.
Constant Value:
"playgames.google.com"
Public Methods
public static AuthCredential getCredential (String serverAuthCode)
Returns a new instance of AuthCredential
that wraps a Play Games Server Auth Code. Used when calling
signInWithCredential(AuthCredential)
or
linkWithCredential(AuthCredential)
.
Parameters
serverAuthCode | a valid Google Play Games server auth code, obtained from Google Play Games Sign In SDK. |
---|