WalletFragmentInitParams.Builder | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Methods | Inherited Methods | [Expand All]
public final class

# WalletFragmentInitParams.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.wallet.fragment.WalletFragmentInitParams.Builder

## Class Overview

Builder for building a `WalletFragmentInitParams`.

## Summary

Public Methods
WalletFragmentInitParams | build()
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.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## 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.