|
| 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...
|
|
◆ 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
-
target | GameObject to use for callback |
callbackMethod | Name of the method to call back |
webClientId | Google OAuth client ID - web ID for login on Android devices |
iosClientId | Google OAuth client ID - iOS ID for login on Apple devices |
◆ 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
-
message | Response message from the plugin |
callback | Callback to be invoked when the result is complete |
errback | Callback 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:
- client/Packages/com.disruptorbeam.engine/Runtime/Core/Platform/SDK/Auth/GoogleSignIn.cs