PriceParams

data class PriceParams(val integerValue: String, val decimalValue: String? = null, val currencyLabel: String, val decimalSign: DecimalSign = DecimalSign.Comma, val captionPrefix: String?, val captionSuffix: String? = null, val currencyPosition: CurrencyPosition = CurrencyPosition.Leading, val subscriptLabel: String? = null, val decimalVerticalAlignment: AffixVerticalAlignment = AffixVerticalAlignment.Top, val currencyVerticalAlignment: AffixVerticalAlignment = AffixVerticalAlignment.Top, val currencySpacing: CurrencySpacing = CurrencySpacing.None)

Price params used to match Price

Constructors

Link copied to clipboard
constructor(integerValue: String, decimalValue: String? = null, currencyLabel: String, decimalSign: DecimalSign = DecimalSign.Comma, captionPrefix: String?, captionSuffix: String? = null, currencyPosition: CurrencyPosition = CurrencyPosition.Leading, subscriptLabel: String? = null, decimalVerticalAlignment: AffixVerticalAlignment = AffixVerticalAlignment.Top, currencyVerticalAlignment: AffixVerticalAlignment = AffixVerticalAlignment.Top, currencySpacing: CurrencySpacing = CurrencySpacing.None)

Properties

Link copied to clipboard

String used as a price prefix for screen readers (Talkback) to describe the price. Consider this as contentDescription.

Link copied to clipboard
val captionSuffix: String? = null

String used as a price suffix for screen readers (Talkback) to describe the price.

Link copied to clipboard

String used for currency. Use a String or Currency.getInstance(<currencyCode>).symbol. Note: If you need to have a LTR view together with a RTL currency, you can use need to use the LRM mark (\u200E) to ensure the currency is displayed correctly for leading or trailing position. Eg. (\uFDFC\u200E) // Arabic Riyal symbol + LRM mark.

Link copied to clipboard

CurrencyPosition indicates where currency will be displayed.

Link copied to clipboard

Spacing between currency and the price value.

Link copied to clipboard

Vertical position of currency

Link copied to clipboard

Decimal sign for Price.

Link copied to clipboard
val decimalValue: String? = null

Decimal value for Price.

Link copied to clipboard

Vertical position of decimal value

Link copied to clipboard

Integer value for Price, will render as provided.

Link copied to clipboard
val subscriptLabel: String? = null

Subscript label defined after decimals and currency.