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
data class PaymentsColors( val primary: Color, val surface: Color, val component: Color, val componentBorder: Color, val componentDivider: Color, val onComponent: Color, val subtitle: Color, val textCursor: Color, val placeholderText: Color, val onSurface: Color, val appBarIcon: Color, val error: Color)
Content copied to clipboard
Link copied to clipboard
data class PaymentsComposeColors( val component: Color, val colorComponentBorder: Color, val colorComponentDivider: Color, val subtitle: Color, val colorTextCursor: Color, val placeholderText: Color, val onComponent: Color, val material: 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
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
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard