| java.lang.Object | |
| ↳ | com.neomades.googlesignin.GoogleSignIn |
Entry point for the Google Sign In API. See GoogleSignInClient.
Available only for Android.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static GoogleSignInClient |
getClient(Screen screen, GoogleSignInOptions options)
Create a new instance of
GoogleSignInClient. | ||||||||||
| static GoogleSignInAccount |
getLastSignedInAccount()
Gets the last account that the user signed in with.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Create a new instance of GoogleSignInClient.
| screen | a Screen that will be used to manage the
lifecycle of the GoogleSignInClient. |
|---|---|
| options | A GoogleSignInOptions used to configure the
GoogleSignInClient. It is recommended to build out a
GoogleSignInOptions starting with
GoogleSignInOptionsBuilder()
to have a a stable user ID and basic profile. |
GoogleSignInClient
Gets the last account that the user signed in with.
GoogleSignInAccount from last known successful sign-in. If
user has never signed in before or has signed out / revoked access,
null is returned.