fun configure(isVirtualCurrencyToggleVisible: Boolean, qrConfig: QrConfig = QrConfig.VC_ONLY, actionBarTitle: String? = null, isVirtualCurrencyEnabled: Boolean = true): Unit
isVirtualCurrencyToggleVisible
- Whether or not wallet UI will show a toggle that allows
users to switch the active QR code (payment type). Disabling means the SDK will assume that
virtual currency is always enabled.
qrConfig
- Determines whether the wallet UI will just show the Virtual Currency QR code,
or just the camera scanner for rich checkout, or both.
actionBarTitle
- String that will display in the action bar at the top of the wallet
view. This title will always be displayed in uppercase. This parameter is not required and
if you do not pass a value in, the action bar will display the virtualCurrencyName specified
in your implementation of VenueNext.walletInterface.
If this is false, virtual currency is disabled and all virtual currency UI (Virtual currency name and balance, Balance history, Use virtual currency toggle, and Transfer virtual currency) will be hidden in the Wallet. If true, virtual currency is enabled and the UI may be presented (Toggle can still be hidden with the isVirtualCurrencyToggleVisible flag.
By default, all product types are allowed to be purchased by virtual currency. isVirtualCurrencyEnabled should only be set to false if a certain product type needs to be restricted.