Beamable SDK
Public Member Functions | Static Public Member Functions | List of all members
Core.Platform.SDK.Auth.GoogleSignIn Class Reference

Public Member Functions

 GoogleSignIn (GameObject target, string callbackMethod, string webClientId, string iosClientId)
 Google Sign-In harness. Because the Android plugin needs to use UnitySendMessage to call back, we need to know the GameObject and callback method name. More...
 
void Login ()
 Initiate login using the Android native plugin. When complete, the plugin will call back to the GameObject specified in the constructor. More...
 

Static Public Member Functions

static void HandleResponse (string message, Action< string > callback, Action< GoogleInvalidTokenException > errback)
 Unpack the response from the Google Sign-In plugin. Call this from the GameObject callback. More...
 

Constructor & Destructor Documentation

◆ GoogleSignIn()

Core.Platform.SDK.Auth.GoogleSignIn.GoogleSignIn ( GameObject  target,
string  callbackMethod,
string  webClientId,
string  iosClientId 
)
inline

Google Sign-In harness. Because the Android plugin needs to use UnitySendMessage to call back, we need to know the GameObject and callback method name.

Parameters
targetGameObject to use for callback
callbackMethodName of the method to call back
webClientIdGoogle OAuth client ID - web ID for login on Android devices
iosClientIdGoogle OAuth client ID - iOS ID for login on Apple devices

Member Function Documentation

◆ HandleResponse()

static void Core.Platform.SDK.Auth.GoogleSignIn.HandleResponse ( string  message,
Action< string >  callback,
Action< GoogleInvalidTokenException errback 
)
inlinestatic

Unpack the response from the Google Sign-In plugin. Call this from the GameObject callback.

Parameters
messageResponse message from the plugin
callbackCallback to be invoked when the result is complete
errbackCallback to call if authentication failed

◆ Login()

void Core.Platform.SDK.Auth.GoogleSignIn.Login ( )
inline

Initiate login using the Android native plugin. When complete, the plugin will call back to the GameObject specified in the constructor.


The documentation for this class was generated from the following file: