Google services: Sign in with Google on Android 14 and later, through the system's Credential Manager. A call answers task::wait on a later tick as a map…
Google services: Sign in with Google on Android 14 and later, through the system's Credential Manager. A call answers task::wait on a later tick as a map whose kind is an EVENT_* constant.
1 function, 4 constants. Scripts reach it as google::.
Functions
Argument kinds are the script values a call passes: node is a node handle, any a table or value of any kind, fn a callback.
| function | acts on | what it does |
|---|---|---|
sign_in() -> int |
— | Sign in with Google, and return the id the answer carries: signed_in with token (an id token for [google] server_client_id), email and name; cancelled; unsupported off Android, below Android 14, with no client id or with no Google account on the device; or error. The accounts already signed in to the app come first, without a tap when there is one. |
Constants
| name | value |
|---|---|
EVENT_CANCELLED |
"cancelled" |
EVENT_ERROR |
"error" |
EVENT_SIGNED_IN |
"signed_in" |
EVENT_UNSUPPORTED |
"unsupported" |