AI-generated Key Takeaways
-
WalletObjectsClient is the entry point for Wallet objects functionality.
-
The createWalletObjects method launches a UI for users to save wallet objects to Google Pay.
-
The createWalletObjects API uses the AutoResolveHelper protocol for handling UI and results.
Entry point for Wallet objects functionality.
Public Method Summary
Inherited Method Summary
Public Methods
public Task< AutoResolvableVoidResult > createWalletObjects ( CreateWalletObjectsRequest request)
Launches a UI allowing the user to save a wallet object (loyalty card, gift card, or offer) to Google Pay.
This API conforms to the protocol defined by AutoResolveHelper
,
so instead of handling the returned exceptions yourself when UI needs to be shown (i.e. ResolvableApiException
),
you should use the AutoResolveHelper
to pipe the results back to Activity.onActivityResult(int, int, android.content.Intent)
. This allows
your code to receive the result whether the UI is shown or not.
Parameters
Returns
- A Task that should be resolved with
AutoResolveHelper.resolveTask(Task, Activity, int).

