Stay organized with collections
Save and categorize content based on your preferences.
interface Result
Represents the final result of invoking an API method in Google Play services.
Summary
Public functions
fun getStatus
(): Status
!
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
.
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-03-17 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-03-17 UTC."],[[["\u003cp\u003e\u003ccode\u003eResult\u003c/code\u003e represents the final result of invoking an API method in Google Play services.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a \u003ccode\u003egetStatus()\u003c/code\u003e function to retrieve a \u003ccode\u003eStatus\u003c/code\u003e object, indicating the success or failure of the operation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStatus\u003c/code\u003e objects can contain resolution intents for certain errors, accessible via \u003ccode\u003egetResolution()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResult\u003c/code\u003e has three known direct subclasses: \u003ccode\u003eBatchResult\u003c/code\u003e, \u003ccode\u003eBooleanResult\u003c/code\u003e, and \u003ccode\u003eStatus\u003c/code\u003e, each serving a specific purpose.\u003c/p\u003e\n"]]],[],null,["# Result\n======\n\nKotlin \\|[Java](/android/reference/com/google/android/gms/common/api/Result \"View this page in Java\") \n\n\n```\ninterface Result\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[BatchResult](/android/reference/kotlin/com/google/android/gms/common/api/BatchResult), [BooleanResult](/android/reference/kotlin/com/google/android/gms/common/api/BooleanResult), [GoogleSignInResult](/android/reference/kotlin/com/google/android/gms/auth/api/signin/GoogleSignInResult), [Status](/android/reference/kotlin/com/google/android/gms/common/api/Status) \n\n|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BatchResult](/android/reference/kotlin/com/google/android/gms/common/api/BatchResult) | The result of a batch operation. |\n| [BooleanResult](/android/reference/kotlin/com/google/android/gms/common/api/BooleanResult) | A [Result](/android/reference/kotlin/com/google/android/gms/common/api/Result) with a boolean value. |\n| [GoogleSignInResult](/android/reference/kotlin/com/google/android/gms/auth/api/signin/GoogleSignInResult) | **This class is deprecated.** Use [Credential Manager](https://developer.android.com/training/sign-in/credential-manager) for authentication or [Google Identity Services](https://developers.google.com/identity/sign-in/android/authorize-access) for authorization. \u003cbr /\u003e |\n| [Status](/android/reference/kotlin/com/google/android/gms/common/api/Status) | Represents the results of work. |\n\n*** ** * ** ***\n\nRepresents the final result of invoking an API method in Google Play services.\n\nSummary\n-------\n\n| ### Public functions |\n|---------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| [Status](/android/reference/kotlin/com/google/android/gms/common/api/Status)`!` | [getStatus](/android/reference/kotlin/com/google/android/gms/common/api/Result#getStatus())`()` Returns the status of this result. |\n\nPublic functions\n----------------\n\n### getStatus\n\n```\nfun getStatus(): Status!\n```\n\nReturns the status of this result. Use [isSuccess](/android/reference/kotlin/com/google/android/gms/common/api/Status#isSuccess()) to determine whether the call was successful, and [getStatusCode](/android/reference/kotlin/com/google/android/gms/common/api/Status#getStatusCode()) to determine what the error cause was.\n\nCertain errors are due to failures that can be resolved by launching a particular intent. The resolution intent is available via [getResolution](/android/reference/kotlin/com/google/android/gms/common/api/Status#getResolution())."]]