public class

GoogleSignIn

extends Object
java.lang.Object
   ↳ com.neomades.googlesignin.GoogleSignIn

Class Overview

Entry point for the Google Sign In API. See GoogleSignInClient.

Cross-Platform considerations

Available only for Android.

Summary

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

Public Methods

public static GoogleSignInClient getClient (Screen screen, GoogleSignInOptions options)

Create a new instance of GoogleSignInClient.

Parameters
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.
Returns

public static GoogleSignInAccount getLastSignedInAccount ()

Gets the last account that the user signed in with.

Returns
  • GoogleSignInAccount from last known successful sign-in. If user has never signed in before or has signed out / revoked access, null is returned.