googleSignIn
Type
handler
Summary
Initiate the Google Sign-In process
Syntax
googleSignIn(<pOptions>)
Description
Use the googleSignIn handler to start the Google Sign-In flow on Android, giving access to details about the signed-in user according to the options specified. If an account has been previously authenticated then this handler returns immediately; otherwise an authentication dialog is presented to the user.
Once the sign-in attempt is complete, the googleSignInResponse message is sent to the object that called googleSignIn, with a parameter indicating whether sign-in was successful.
Parameters
| Name | Type | Description |
|---|---|---|
pOptions | The options used to configure Google Sign-In. pOptions is an optional array, and the presence of a key results in that option being used in the configuration. The following keys are allowed:
Regardless of the options specified, the user's display name, given name, family name, id and photo url are always accessible once signed in. |
Examples
local tOptionsA
put true into tOptionsA["require-email"]
return googleSignIn(tOptionsA)
Value
| Name | Type | Description |
|---|---|---|
return | The googleSignIn handler returns a string describing any error, or empty if none occurred. |
Related
handler: googleSignInRequired, googleSignOut
message: googleSignInResponse
Compatibility and Support
OS
android