Represents the results of work.
| public static final Creator<Status> | CREATOR |
|
Status(int
statusCode)
Creates a representation of the status resulting from a GoogleApiClient
operation.
|
|
|
Status(int statusCode, String
statusMessage, PendingIntent
pendingIntent)
Creates a representation of the status resulting from a GoogleApiClient
operation.
|
|
|
Status(ConnectionResult
connectionResult, String
statusMessage)
Creates a failed API call status due to a failure to connect to Google Play
services.
|
| boolean | |
| ConnectionResult |
getConnectionResult()
Returns a failed
ConnectionResult,
if applicable.
|
| PendingIntent |
getResolution()
A pending intent to resolve the failure.
|
| Status |
getStatus()
Returns the status of this result.
|
| int |
getStatusCode()
Indicates the status of the operation.
|
| String | |
| boolean |
hasResolution()
Returns true if calling
startResolutionForResult(Activity, int) will start any intents
requiring user interaction.
|
| int |
hashCode()
|
| boolean |
isCanceled()
Returns true if the operation was canceled.
|
| boolean |
isInterrupted()
Returns true if the operation was interrupted.
|
| boolean |
isSuccess()
Returns true if the operation was successful.
|
| void |
startResolutionForResult(Activity
activity, int requestCode)
Resolves an error by starting any intents requiring user interaction.
|
| String |
toString()
|
| void |
writeToParcel(Parcel out, int
flags)
|
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. |
Creates a failed API call status due to a failure to connect to Google Play services.
Returns a failed ConnectionResult,
if applicable.
If the Status is successful, or the failure was not due to an issue
with the connection to Google Play services, this returns null.
A pending intent to resolve the failure. This intent can be started with
Activity.startIntentSenderForResult(IntentSender, int, Intent, int, int,
int) to present UI to solve the issue.
Returns the status of this result. Use Status.isSuccess()
to determine whether the call was successful, and Status.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 Status.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
CommonStatusCodes.SIGN_IN_REQUIRED, and
CommonStatusCodes.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 Activity.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. |
|---|