GoogleSignInResult

  • The GoogleSignInResult class is deprecated and developers should use Credential Manager or Google Identity Services instead.

  • GoogleSignInResult objects implement the Result interface and can contain a GoogleSignInAccount representing user sign-in information.

  • The class provides public methods to get the sign-in account, check the status of the sign-in attempt, and a convenient method to check if sign-in was successful.

public class GoogleSignInResult extends Object
implements Result

This class is deprecated.
Use Credential Manager for authentication or Google Identity Services for authorization.

GoogleSignInResults are Result implementations that potentially contain a ERROR(/GoogleSignInAccount).

Public Method Summary

GoogleSignInAccount
getSignInAccount()
Returns a ERROR(/GoogleSignInAccount) reflecting the user's sign in information if sign-in completed successfully; or null when failed.
Status
getStatus()
Returns a Status 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

public GoogleSignInAccount getSignInAccount ()

Returns a ERROR(/GoogleSignInAccount) reflecting the user's sign in information if sign-in completed successfully; or null when failed.

public Status getStatus ()

Returns a Status 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 from Status.getStatusCode() to consts defined in GoogleSignInStatusCodes and its parent class.

public boolean isSuccess ()

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