Package com.stripe.android.ui.core
Types
Link copied to clipboard
data class Amount(val value: Long, val currencyCode: String) : Parcelable
Content copied to clipboard
This class represents the long value amount to charge and the currency code of the amount.
Link copied to clipboard
Link copied to clipboard
This class converts the fields in a form into a structure as defined by a map.
Link copied to clipboard
data class PaymentsColors( val component: Color, val componentBorder: Color, val componentDivider: Color, val onComponent: Color, val subtitle: Color, val textCursor: Color, val placeholderText: Color, val appBarIcon: Color, val materialColors: Colors)
Content copied to clipboard
Link copied to clipboard
data class PaymentsComposeShapes( val borderStrokeWidth: Dp, val borderStrokeWidthSelected: Dp, val material: Shapes)
Content copied to clipboard
Link copied to clipboard
data class PaymentsShapes( val cornerRadius: Float, val borderStrokeWidth: Float, val borderStrokeWidthSelected: Float)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PaymentsTypography( val fontWeightNormal: Int, val fontWeightMedium: Int, val fontWeightBold: Int, val fontSizeMultiplier: Float, val xxSmallFontSize: TextUnit, val xSmallFontSize: TextUnit, val smallFontSize: TextUnit, val mediumFontSize: TextUnit, val largeFontSize: TextUnit, val xLargeFontSize: TextUnit, @FontRes val fontFamily: Int?)
Content copied to clipboard
Link copied to clipboard
data class PrimaryButtonColors( val background: Color, val onBackground: Color, val border: Color)
Content copied to clipboard
Link copied to clipboard
data class PrimaryButtonShape(val cornerRadius: Float, val borderStrokeWidth: Float)
Content copied to clipboard
Link copied to clipboard
data class PrimaryButtonStyle( val colorsLight: PrimaryButtonColors, val colorsDark: PrimaryButtonColors, val shape: PrimaryButtonShape, val typography: PrimaryButtonTypography)
Content copied to clipboard
Link copied to clipboard
data class PrimaryButtonTypography(@FontRes val fontFamily: Int?, val fontSize: TextUnit)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
fun createTextSpanFromTextStyle( text: String?, context: Context, fontSizeDp: Dp, color: Color, @FontRes fontFamily: Int?): SpannableString
Content copied to clipboard
Link copied to clipboard
Base Theme for Payments Composables that are not merchant configurable. Use this theme if you do not want merchant configurations to change your UI
Link copied to clipboard
@Composable
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Composable
@ReadOnlyComposable
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Composable
Content copied to clipboard
This method calculates the width of the composable. It can be used such that the parent view wrapping the composable can adjust its width.
Link copied to clipboard
Base Theme for Payments Composables. CAUTION: This theme is mutable by merchant configurations.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Link copied to clipboard
@get:Composable
@get:ReadOnlyComposable
Content copied to clipboard
Link copied to clipboard
@get:Composable
@get:ReadOnlyComposable
Content copied to clipboard