Integrate Google Sign In
suggest changeVersions
[{“Name”:“4.3”,“GroupName”:null},{“Name”:“4.4”,“GroupName”:null},{“Name”:“4.4W”,“GroupName”:null},{“Name”:“5.0”,“GroupName”:null},{“Name”:“5.1”,“GroupName”:null},{“Name”:“6.0”,“GroupName”:null},{“Name”:“7.0”,“GroupName”:null},{“Name”:“7.1”,“GroupName”:null}]
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 helper | AppCompatActivity | An Activity reference | GoogleApiClient | A reference of GoogleAPIClient | RC_SIGN_IN | An integer represents activity result constant | isLoggingOut | A boolean to check if log-out task is running or not |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents