Java Code Examples for com.google.android.gms.auth.api.signin.GoogleSignInAccount#getFamilyName()
The following examples show how to use
com.google.android.gms.auth.api.signin.GoogleSignInAccount#getFamilyName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AndroidGoogleAccount.java From QtAndroidTools with MIT License | 5 votes |
private boolean loadSignedInAccountInfo(final GoogleSignInAccount SignedInAccount) { if(SignedInAccount != null) { AccountInfo SignedInAccountInfo = new AccountInfo(); final Uri PhotoUrl = SignedInAccount.getPhotoUrl(); SignedInAccountInfo.id = SignedInAccount.getId(); SignedInAccountInfo.displayName = SignedInAccount.getDisplayName(); SignedInAccountInfo.email = SignedInAccount.getEmail(); SignedInAccountInfo.familyName = SignedInAccount.getFamilyName(); SignedInAccountInfo.givenName = SignedInAccount.getGivenName(); if(PhotoUrl != null) { DownloadAccountPhotoTask DownloadAccountPhoto = new DownloadAccountPhotoTask(SignedInAccountInfo); DownloadAccountPhoto.execute(PhotoUrl.toString()); } else { SignedInAccountInfo.photo = null; updateSignedInAccountInfo(SignedInAccountInfo); } return true; } return false; }
Example 2
Source File: RxAccount.java From RxSocialAuth with Apache License 2.0 | 5 votes |
public RxAccount(GoogleSignInAccount gsa) { this.id = gsa.getId(); this.accessToken = gsa.getIdToken(); this.email = gsa.getEmail(); this.firstname = gsa.getGivenName(); this.lastname = gsa.getFamilyName(); this.displayName = gsa.getDisplayName(); this.photoUri = gsa.getPhotoUrl(); this.provider = IdentityProviders.GOOGLE; }