Builder
class Builder
Functions
Link copied to clipboard
fun additionalVerticalInsetsDp(insets: Float): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
Additional vertical insets applied to a payment method row.
Link copied to clipboard
fun bottomSeparatorEnabled(enabled: Boolean): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
Determines if the bottom separator is visible at the bottom of the Embedded Mobile Payment Element.
Link copied to clipboard
Link copied to clipboard
fun colorsDark(colors: PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Colors): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
Describes the colors used while the system is in dark mode.
Link copied to clipboard
fun colorsLight(colors: PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Colors): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
Describes the colors used while the system is in light mode.
Link copied to clipboard
fun disclosureIconRes(@DrawableRes iconRes: Int): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
The drawable displayed on the end of the row - typically, a chevron. This should be a resource ID value.
Link copied to clipboard
fun endSeparatorInsetDp(inset: Float): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
The end inset of the separator line between rows.
Link copied to clipboard
fun horizontalInsetsDp(insets: Float): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
Horizontal insets applied to a payment method row.
Link copied to clipboard
fun separatorThicknessDp(thickness: Float): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
The thickness of the separator line between rows.
Link copied to clipboard
fun startSeparatorInsetDp(inset: Float): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
The start inset of the separator line between rows.
Link copied to clipboard
fun topSeparatorEnabled(enabled: Boolean): PaymentSheet.Appearance.Embedded.RowStyle.FlatWithDisclosure.Builder
Determines if the top separator is visible at the top of the Embedded Mobile Payment Element.