Builder to create a
Public Method Summary
Sets the creation mode to use.
Inherited Method Summary
public CreateWalletObjectsRequest build ()
CreateWalletObjectsRequestcreated 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".
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
public CreateWalletObjectsRequest.Builder setGiftCardWalletObject (GiftCardWalletObject giftCardWalletObject)
Sets the Gift Card wallet object to be created.
public CreateWalletObjectsRequest.Builder setLoyaltyWalletObject (LoyaltyWalletObject loyaltyWalletObject)
Sets the Loyalty wallet object to be created.