Stay organized with collections Save and categorize content based on your preferences.
public final class Status implements Parcelable, Result
Represents the results of work.
Summary Public constructorsStatus(int statusCode)
Creates a representation of the status resulting from a GoogleApiClient operation.
Status(
@NonNull ConnectionResult connectionResult,
@NonNull String statusMessage
)
Creates a failed API call status due to a failure to connect to Google Play services.
Status(int statusCode, @Nullable String statusMessage)
Creates a representation of the status resulting from a GoogleApiClient operation.
Status(
int statusCode,
@Nullable String statusMessage,
@Nullable PendingIntent pendingIntent
)
Creates a representation of the status resulting from a GoogleApiClient operation.
Public constructorspublic Status(int statusCode)
Creates a representation of the status resulting from a GoogleApiClient operation.
Parametersint statusCode
The status code.
public Status(int statusCode, @Nullable String statusMessage)
Creates a representation of the status resulting from a GoogleApiClient operation.
Parametersint statusCode
The status code.
@Nullable String statusMessage
The message associated with this status, or null.
public Status(
int statusCode,
@Nullable String statusMessage,
@Nullable PendingIntent pendingIntent
)
Creates a representation of the status resulting from a GoogleApiClient operation.
Parametersint statusCode
The status code.
@Nullable String statusMessage
The message associated with this status, or null.
@Nullable PendingIntent pendingIntent
A pending intent that will resolve the issue when started, or null.
Public methodspublic int getStatusCode()
Indicates the status of the operation.
Returnsint
Status code resulting from the operation. The value is one of the constants in or specific to the APIs added to the .
public boolean hasResolution()
Returns true if calling startResolutionForResult
will start any intents requiring user interaction.
boolean
true if there is a resolution that can be started.
public boolean isCanceled()
Returns true if the operation was canceled.
public boolean isInterrupted()
Returns true if the operation was interrupted.
@CheckReturnValue
public boolean isSuccess()
Returns true if the operation was successful.
Returnsboolean
true if the operation was successful, false if there was an error.
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 2025-04-14 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 2025-04-14 UTC."],[[["`Status` represents the outcome of a GoogleApiClient operation, offering details about success or failure."],["It includes properties like `statusCode`, `statusMessage`, and optionally a `connectionResult` to provide information on the status of the operation."],["`Status` objects can be constructed with various parameters, including status code, status message, and a pending intent for error resolution."],["The `Status` class provides methods to check for success, cancellation, interruption, and whether a resolution is available via a PendingIntent."],["The `startResolutionForResult` methods allow for user interaction to resolve errors, such as sign-in or other required actions."]]],["`Status` represents operation results, offering public fields like `statusCode`, `statusMessage`, and `connectionResult`. Constructors create `Status` instances, accepting status codes, messages, connection results, and pending intents. Public methods check if an operation was successful, canceled, or interrupted, provide the status code/message, and retrieve connection results/pending intents. `startResolutionForResult` resolves errors through user interaction, while `isSuccess` verifies operation success. The class also provides functionality to handle parcelable operations, using `writeToParcel` and `CREATOR`.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4