java.lang.Object | |
↳ | com.google.android.gms.common.api.Status |
Represents the results of work.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a representation of the status resulting from a GoogleApiClient operation.
| |||||||||||
Creates a representation of the status resulting from a GoogleApiClient operation.
| |||||||||||
Creates a representation of the status resulting from a GoogleApiClient operation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A pending intent to resolve the failure.
| |||||||||||
Returns the status of this result.
| |||||||||||
Indicates the status of the operation.
| |||||||||||
Returns true if calling
startResolutionForResult(Activity, int)
will start any intents requiring user interaction.
| |||||||||||
Returns true if the operation was canceled.
| |||||||||||
Returns true if the operation was interrupted.
| |||||||||||
Returns true if the operation was successful.
| |||||||||||
Resolves an error by starting any intents requiring user interaction.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||
From interface
android.os.Parcelable
| |||||||||||||||||||||||||||||||||
From interface com.google.android.gms.common.api.Result |
Creates a representation of the status resulting from a GoogleApiClient operation.
statusCode | The status code. |
---|
Creates a representation of the status resulting from a GoogleApiClient operation.
statusCode | The status code. |
---|---|
statusMessage | The message associated with this status, or null. |
Creates a representation of the status resulting from a GoogleApiClient operation.
statusCode | The status code. |
---|---|
statusMessage | The message associated with this status, or null. |
pendingIntent | A pending intent that will resolve the issue when started, or null. |
A pending intent to resolve the failure. This intent can be started with
startIntentSenderForResult(IntentSender, int, Intent, int, int, int)
to
present UI to solve the issue.
Returns the status of this result. Use isSuccess()
to determine whether the
call was successful, and getStatusCode()
to determine what the error cause
was.
Certain errors are due to failures that can be resolved by launching a particular intent.
The resolution intent is available via getResolution()
.
Indicates the status of the operation.
CommonStatusCodes
or specific to the APIs added to the
GoogleApiClient
.
Returns true if calling startResolutionForResult(Activity, int)
will start any intents requiring user interaction.
Returns true if the operation was canceled.
Returns true if the operation was interrupted.
Returns true if the operation was successful.
Resolves an error by starting any intents requiring user interaction.
See SIGN_IN_REQUIRED
, and RESOLUTION_REQUIRED
.
activity | An Activity context to use to resolve the issue. The activity's
onActivityResult method will be invoked after the user is done. If the
resultCode is RESULT_OK , the application should try to
connect again. |
---|---|
requestCode | The request code to pass to onActivityResult. |
IntentSender.SendIntentException | If the resolution intent has been canceled or is no longer able to execute the request. |
---|