WalletFragmentInitParams.Builder

public final class WalletFragmentInitParams.Builder extends Object

Builder for building a WalletFragmentInitParams.

Public Method Summary

WalletFragmentInitParams
WalletFragmentInitParams.Builder
setAccountName(String accountName)
Specify a Google account name on the device that should be used.
WalletFragmentInitParams.Builder
setMaskedWallet(MaskedWallet maskedWallet)
Sets a MaskedWallet to be used for displaying masked wallet details.
WalletFragmentInitParams.Builder
setMaskedWalletRequest(MaskedWalletRequest request)
Sets a MaskedWalletRequest for retrieving the user's masked payment credentials.
WalletFragmentInitParams.Builder
setMaskedWalletRequestCode(int requestCode)
Sets a request code to be passed back in onActivityResult for the masked wallet result.

Inherited Method Summary

Public Methods

public WalletFragmentInitParams build ()

public WalletFragmentInitParams.Builder setAccountName (String accountName)

Specify a Google account name on the device that should be used. If not set, the user might be asked to select an account if multiple accounts are present on the device.

public WalletFragmentInitParams.Builder setMaskedWallet (MaskedWallet maskedWallet)

Sets a MaskedWallet to be used for displaying masked wallet details. Exactly one of MaskedWalletRequest or MaskedWallet should be set.

public WalletFragmentInitParams.Builder setMaskedWalletRequest (MaskedWalletRequest request)

Sets a MaskedWalletRequest for retrieving the user's masked payment credentials. Exactly one of MaskedWalletRequest or MaskedWallet should be set.

public WalletFragmentInitParams.Builder setMaskedWalletRequestCode (int requestCode)

Sets a request code to be passed back in onActivityResult for the masked wallet result. This is required and must be non-negative.