AndroidIntegrate Google Sign In


Syntax

  • newInstance() - To create single instance of Google Helper
  • initGoogleSignIn() - To initialize Google log in
  • getGoogleAccountDetails() - To get logged in Account details
  • signOut() - To log out user
  • getGoogleClient() - To get GoogleApiClient used

Parameters

ParameterDetail
TAGA String used while logging
GoogleSignInHelperA static reference for helper
AppCompatActivityAn Activity reference
GoogleApiClientA reference of GoogleAPIClient
RC_SIGN_INAn integer represents activity result constant
isLoggingOutA boolean to check if log-out task is running or not