java.lang.Object | ||
↳ | com.google.android.gms.common.api.GoogleApi<com.google.android.gms.wallet.Wallet.WalletOptions> | |
↳ | com.google.android.gms.wallet.WalletObjectsClient |
Entry point for Wallet objects functionality.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Launches a UI allowing the user to save a wallet object (loyalty card, gift card, or offer) to
Android Pay.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Launches a UI allowing the user to save a wallet object (loyalty card, gift card, or offer) to Android 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 |
CreateWalletObjectsRequest : An instance of CreateWalletObjectsRequest which specifies actual objects
to be created |
Returns | |
---|---|
Task<AutoResolvableVoidResult> |
A Task that should be resolved with resolveTask(Task, Activity, int) .
|