CreateWalletObjectsRequest.Builder | Doclava
public final class

CreateWalletObjectsRequest.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.wallet.CreateWalletObjectsRequest.Builder

Class Overview

Builder to create a CreateWalletObjectsRequest.

Summary

Public Methods
CreateWalletObjectsRequest build()
CreateWalletObjectsRequest.Builder setCreateMode(int createMode)
Sets the creation mode to use.
CreateWalletObjectsRequest.Builder setGiftCardWalletObject(GiftCardWalletObject giftCardWalletObject)
Sets the Gift Card wallet object to be created.
CreateWalletObjectsRequest.Builder setLoyaltyWalletObject(LoyaltyWalletObject loyaltyWalletObject)
Sets the Loyalty wallet object to be created.
CreateWalletObjectsRequest.Builder setOfferWalletObject(OfferWalletObject offerWalletObject)
Sets the Offer wallet object to be created.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public CreateWalletObjectsRequest build ()

Returns
CreateWalletObjectsRequest the CreateWalletObjectsRequest created using the data passed to the Builder.

public CreateWalletObjectsRequest.Builder setCreateMode (int createMode)

Sets the creation mode to use. If the value is SHOW_SAVE_PROMPT, it means a save prompt dialog should be shown, with a save button that the user must click before the save actually happens. If the value is REQUEST_IMMEDIATE_SAVE it means that when possible, the save will happen immediately, followed by a confirmation dialog shown to the user if the save was successful. Note that it is the calling application's responsibility to ensure that REQUEST_IMMEDIATE_SAVE is only used if the user has indicated their intention to actually have the Wallet Object be saved to Android Pay, such as by clicking a button in the calling application with the label "Save to Android Pay". Sometimes the SHOW_SAVE_PROMPT mode will still be used by the implementation, even when REQUEST_IMMEDIATE_SAVE is specified by the caller. For example, if there are multiple Google accounts on the device, the implementation may still show the save prompt dialog in order to allow the user to select which account they want saved to.

Parameters
createMode int
Returns
CreateWalletObjectsRequest.Builder

public CreateWalletObjectsRequest.Builder setGiftCardWalletObject (GiftCardWalletObject giftCardWalletObject)

Sets the Gift Card wallet object to be created.

Parameters
giftCardWalletObject GiftCardWalletObject
Returns
CreateWalletObjectsRequest.Builder

public CreateWalletObjectsRequest.Builder setLoyaltyWalletObject (LoyaltyWalletObject loyaltyWalletObject)

Sets the Loyalty wallet object to be created.

Parameters
loyaltyWalletObject LoyaltyWalletObject
Returns
CreateWalletObjectsRequest.Builder

public CreateWalletObjectsRequest.Builder setOfferWalletObject (OfferWalletObject offerWalletObject)

Sets the Offer wallet object to be created.

Parameters
offerWalletObject OfferWalletObject
Returns
CreateWalletObjectsRequest.Builder