Plus.PeopleApi.load(mGoogleApiClient, googleUser.getId()).setResultCallback(new ResultCallback<People.LoadPeopleResult>() {
@Override
public void onResult(@NonNull People.LoadPeopleResult loadPeopleResult) {
Person person = loadPeopleResult.getPersonBuffer().get(0);
gender = person.getGender();
loadPeopleResult.release();
}
});
This is the code that I have used so far to get the floor from GoogleSignInAccount, which is currently the proper way to integrate Google into Android applications. But since the update 9.4.0 for com.google.android.gms: play-services-plus, the entire Plus class has been deprecated, including the PeopleApi method and load. I read tons of Google documentation, but I just can't find the right way to get the floor.
source
share