GoogleSignInStatusCodes
Stay organized with collections
Save and categorize content based on your preferences.
This class is deprecated.
Use Credential
Manager for authentication or Google Identity
Services for authorization.
Google Sign In specific status codes, for use in Status#getStatusCode()
.
In addition to codes defined in this class, you might also want to check:
Inherited Constant Summary
From class
com.google.android.gms.common.api.CommonStatusCodes
int |
API_NOT_CONNECTED |
|
int |
CANCELED |
|
int |
CONNECTION_SUSPENDED_DURING_CALL |
|
int |
DEVELOPER_ERROR |
|
int |
ERROR |
|
int |
INTERNAL_ERROR |
|
int |
INTERRUPTED |
|
int |
INVALID_ACCOUNT |
|
int |
NETWORK_ERROR |
|
int |
RECONNECTION_TIMED_OUT |
|
int |
RECONNECTION_TIMED_OUT_DURING_UPDATE |
|
int |
REMOTE_EXCEPTION |
|
int |
RESOLUTION_REQUIRED |
|
int |
SERVICE_DISABLED |
|
int |
SERVICE_VERSION_UPDATE_REQUIRED |
|
int |
SIGN_IN_REQUIRED |
|
int |
SUCCESS |
|
int |
SUCCESS_CACHE |
|
int |
TIMEOUT |
|
Public Method Summary
static String
|
getStatusCodeString(int statusCode)
Returns an untranslated debug (not user-friendly) string based on the current
status code.
|
Inherited Method Summary
From class
com.google.android.gms.common.api.CommonStatusCodes
static String
|
getStatusCodeString(int arg0)
|
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int
SIGN_IN_CANCELLED
The sign in was cancelled by the user. i.e. user cancelled some of the sign in
resolutions, e.g. account picking or OAuth consent.
Constant Value: 12501
public static final int
SIGN_IN_CURRENTLY_IN_PROGRESS
A sign in process is currently in progress and the current one cannot continue. e.g.
the user clicks the SignInButton multiple times and more than one sign in intent was
launched.
Constant Value: 12502
public static final int
SIGN_IN_FAILED
The sign in attempt didn't succeed with the current account.
Unlike
CommonStatusCodes.SIGN_IN_REQUIRED
. when seeing this error code, there is
nothing user can do to recover from the sign in failure. Switching to another account
may or may not help. Check adb log to see details if any.
Constant Value: 12500
Public Methods
public static String getStatusCodeString (int
statusCode)
Returns an untranslated debug (not user-friendly) string based on the current status
code.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eGoogleSignInStatusCodes\u003c/code\u003e is deprecated; use Credential Manager or Google Identity Services for authentication/authorization.\u003c/p\u003e\n"],["\u003cp\u003eIt provides Google Sign-In specific status codes, like \u003ccode\u003eSIGN_IN_CANCELLED\u003c/code\u003e, \u003ccode\u003eSIGN_IN_CURRENTLY_IN_PROGRESS\u003c/code\u003e, and \u003ccode\u003eSIGN_IN_FAILED\u003c/code\u003e, for use with \u003ccode\u003eStatus#getStatusCode()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should also consider checking common status codes like \u003ccode\u003eSIGN_IN_REQUIRED\u003c/code\u003e, \u003ccode\u003eNETWORK_ERROR\u003c/code\u003e, etc., defined in \u003ccode\u003eCommonStatusCodes\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a helper method \u003ccode\u003egetStatusCodeString()\u003c/code\u003e to get a debug string representation of a status code.\u003c/p\u003e\n"]]],[],null,[]]