Stats

107 Contributors: 3 Monday, March 20, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

Integrate 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

Related Examples