Entry point for Wallet objects functionality.
Inherited Field Summary
Public Method Summary
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.
|
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
onActivityResult(int, int, android.content.Intent)
. This frees your code
from having to handle receiving the result differently depending on UI being shown or
not.
Parameters
request | An instance of CreateWalletObjectsRequest
which specifies actual objects to be created |
---|
Returns
- A Task that should be resolved with
resolveTask(Task, Activity, int)
.