AutoResolvableVoidResult
Stay organized with collections
Save and categorize content based on your preferences.
A Void result that is an AutoResolvableResult
.
This is returned as the Task
result type for
APIs that do not return data beyond an error code on failures but that still show UI and can
be handled using AutoResolveHelper
.
Public Constructor Summary
Inherited Method Summary
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()
|
Public Constructors
public AutoResolvableVoidResult ()
Public Methods
public void putIntoIntent (Intent
intent)
Saves the intent as an extra into the given Intent
.
Generally speaking, any classes that implement this interface will also have a
static method called getFromIntent(Intent)
to do the opposite
operation.
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.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eAutoResolvableVoidResult\u003c/code\u003e is a class used for Google Pay APIs that don't return data but still display UI and can be resolved using \u003ccode\u003eAutoResolveHelper\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt implements the \u003ccode\u003eAutoResolvableResult\u003c/code\u003e interface, allowing it to save its state into an Intent for handling UI flows.\u003c/p\u003e\n"],["\u003cp\u003eThis class is primarily used as the result type for tasks representing operations without specific data outputs, focusing on error codes and UI interactions.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a constructor to create an instance and a \u003ccode\u003eputIntoIntent\u003c/code\u003e method to store the result into an Intent.\u003c/p\u003e\n"]]],[],null,["# AutoResolvableVoidResult\n\npublic class **AutoResolvableVoidResult** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [AutoResolvableResult](/android/reference/com/google/android/gms/wallet/AutoResolvableResult) \nA Void result that is an [AutoResolvableResult](/android/reference/com/google/android/gms/wallet/AutoResolvableResult).\nThis is returned as the [Task](/android/reference/com/google/android/gms/tasks/Task) result type for\nAPIs that do not return data beyond an error code on failures but that still show UI and can\nbe handled using [AutoResolveHelper](/android/reference/com/google/android/gms/wallet/AutoResolveHelper). \n\n### Public Constructor Summary\n\n|---|------------------------------------------------------------------------------------------------------------------------------------|\n| | [AutoResolvableVoidResult](/android/reference/com/google/android/gms/wallet/AutoResolvableVoidResult#AutoResolvableVoidResult())() |\n\n### Public Method Summary\n\n|------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| void | [putIntoIntent](/android/reference/com/google/android/gms/wallet/AutoResolvableVoidResult#putIntoIntent(android.content.Intent))([Intent](//developer.android.com/reference/android/content/Intent.html) intent) Saves the intent as an extra into the given [Intent](//developer.android.com/reference/android/content/Intent.html). |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface [com.google.android.gms.wallet.AutoResolvableResult](/android/reference/com/google/android/gms/wallet/AutoResolvableResult) \n\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [putIntoIntent](/android/reference/com/google/android/gms/wallet/AutoResolvableResult#putIntoIntent(android.content.Intent))([Intent](//developer.android.com/reference/android/content/Intent.html) intent) Saves the intent as an extra into the given [Intent](//developer.android.com/reference/android/content/Intent.html). |\n\nPublic Constructors\n-------------------\n\n#### public **AutoResolvableVoidResult** ()\n\nPublic Methods\n--------------\n\n#### public void **putIntoIntent** ([Intent](//developer.android.com/reference/android/content/Intent.html) intent)\n\nSaves the intent as an extra into the given [Intent](//developer.android.com/reference/android/content/Intent.html).\n\nGenerally speaking, any classes that implement this interface will also have a\nstatic method called `getFromIntent(Intent)` to do the opposite\noperation."]]