Wallet.WalletOptions.Builder

  • Wallet.WalletOptions.Builder is used to build wallet options.

  • The builder has methods to set the wallet environment and theme.

  • The useGoogleWallet method is deprecated as Google Wallet is being removed.

  • The build() method creates the Wallet.WalletOptions from the builder.

public static final class Wallet.WalletOptions.Builder extends Object

Wallet builder.

Public Constructor Summary

Public Method Summary

Wallet.WalletOptions
build()
Building walletOptions from the builder
Wallet.WalletOptions.Builder
setEnvironment(int environment)
Setting wallet environment
Wallet.WalletOptions.Builder
setTheme(int theme)
Setting wallet theme
Wallet.WalletOptions.Builder
useGoogleWallet()
This method is deprecated. Google Wallet is deprecated and will be removed.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public Wallet.WalletOptions build ()

Building walletOptions from the builder

public Wallet.WalletOptions.Builder setEnvironment (int environment)

Setting wallet environment

public Wallet.WalletOptions.Builder setTheme (int theme)

Setting wallet theme

public Wallet.WalletOptions.Builder useGoogleWallet ()

This method is deprecated.
Google Wallet is deprecated and will be removed.

Indicates that Google Wallet branding and features will be used instead of Google Pay.

If this method is not called, it is assumed the app will be using Google Pay branding and features.