GoogleSignInResult

public classGoogleSignInResultextendsObject
implementsResult

This class is deprecated.
UseCredential Managerfor authentication orGoogle Identity Servicesfor authorization.

GoogleSignInResults areResult implementations that potentially contain aERROR(/GoogleSignInAccount).

Public Method Summary

GoogleSignInAccount
getSignInAccount()
Returns aERROR(/GoogleSignInAccount) reflecting the user's sign in information if sign-in completed successfully; or nullwhen failed.
Status
getStatus()
Returns aStatus object indicating the status of the sign in attempt.
boolean
isSuccess()
Convenient method to help you tell if sign-in completed successfully.

Inherited Method Summary

Public Methods

publicGoogleSignInAccount getSignInAccount()

Returns aERROR(/GoogleSignInAccount) reflecting the user's sign in information if sign-in completed successfully; or nullwhen failed.

publicStatus getStatus()

Returns aStatus object indicating the status of the sign in attempt.

You can use isSuccess()to determine quickly if sign-in succeeded. If sign-in failed, you can match the status code retrieved fromStatus.getStatusCode() to consts defined in GoogleSignInStatusCodesand its parent class.

public booleanisSuccess()

Convenient method to help you tell if sign-in completed successfully.