Google signin 如何从谷歌登录SDK中检索性别?

Google signin 如何从谷歌登录SDK中检索性别?,google-signin,googlesigninaccount,googlesigninapi,Google Signin,Googlesigninaccount,Googlesigninapi,我遵循了这个样本: 并可以成功登录谷歌。 我可以检索这些数据: profile.getId(), profile.getName(), profile.getGivenName(), profile.getEmail(), profile.getImageUrl() 但是。。如何检索用户的性别?您可以使用Google.api.Oauth2.v2.Data.Userinfoplus.gender检索性别 更多信息请单击

我遵循了这个样本:

并可以成功登录谷歌。 我可以检索这些数据:

profile.getId(), 
profile.getName(), 
profile.getGivenName(),
profile.getEmail(),
profile.getImageUrl()

但是。。如何检索用户的性别?

您可以使用Google.api.Oauth2.v2.Data.Userinfoplus.gender检索性别

更多信息请单击