Integrate Google Sign In
suggest changeVersions
The helper described here was documented against Android 4.3 through 7.1.
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
| Parameter | Detail |
|---|---|
| TAG | A String used while logging |
| GoogleSignInHelper | A static reference for the helper |
| AppCompatActivity | An Activity reference |
| GoogleApiClient | A reference to GoogleApiClient |
| RC_SIGN_IN | An integer that represents the activity-result constant |
| isLoggingOut | A boolean to check if a log-out task is running |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents