public final class

WalletFragmentOptions.Builder

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

Class Overview

Builder for building WalletFragmentOptions.

Summary

Public Methods
WalletFragmentOptions build()
WalletFragmentOptions.Builder setEnvironment(int environment)
Sets the Google Wallet environment to use.
WalletFragmentOptions.Builder setFragmentStyle(WalletFragmentStyle fragmentStyle)
Sets a set of attributes to customize the look and feel of the UI components of a WalletFragment.
WalletFragmentOptions.Builder setFragmentStyle(int styleResourceId)
Sets a set of attributes to customize the look and feel of the UI components of a WalletFragment.
WalletFragmentOptions.Builder setMode(int mode)
Sets the mode of the wallet fragment.
WalletFragmentOptions.Builder setTheme(int theme)
Sets a theme for the Wallet selector on Android OS with SDK_INT >= HONEYCOMB.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public WalletFragmentOptions.Builder setEnvironment (int environment)

Sets the Google Wallet environment to use. Defaults to ENVIRONMENT_TEST.

Parameters
environment int
Returns
WalletFragmentOptions.Builder

public WalletFragmentOptions.Builder setFragmentStyle (WalletFragmentStyle fragmentStyle)

Sets a set of attributes to customize the look and feel of the UI components of a WalletFragment.

Parameters
fragmentStyle WalletFragmentStyle
Returns
WalletFragmentOptions.Builder

See also:

public WalletFragmentOptions.Builder setFragmentStyle (int styleResourceId)

Sets a set of attributes to customize the look and feel of the UI components of a WalletFragment. If not set explicitly the default style WalletFragmentDefaultStyle will be used. In most cases you will need to customize the style of the wallet fragment so that the UI of the fragment better matches the UI of the application.

Parameters
styleResourceId int: id of a style resource that defines the attributes. See WalletFragmentStyle for a list of attributes available
Returns
WalletFragmentOptions.Builder

See also:

public WalletFragmentOptions.Builder setMode (int mode)

Sets the mode of the wallet fragment. Supported modes are defined by WalletFragmentMode. Defaults to BUY_BUTTON.

Parameters
mode int
Returns
WalletFragmentOptions.Builder

See also:

public WalletFragmentOptions.Builder setTheme (int theme)

Sets a theme for the Wallet selector on Android OS with SDK_INT >= HONEYCOMB. The only legitimate values are THEME_DARK and THEME_LIGHT as those are the only supported themes. User-created themes are not supported. Value ignored for Android OS with SDK_INT < HONEYCOMB. Defaults to THEME_DARK.

Parameters
theme int
Returns
WalletFragmentOptions.Builder

See also: