Package com.stripe.android.ui.core

Types

Link copied to clipboard
data class Amount(value: Long, currencyCode: String) : Parcelable

This class represents the long value amount to charge and the currency code of the amount.

Link copied to clipboard
class CurrencyFormatter
Link copied to clipboard
data class PaymentsColors(primary: Color, surface: Color, component: Color, componentBorder: Color, componentDivider: Color, onComponent: Color, subtitle: Color, textCursor: Color, placeholderText: Color, onSurface: Color, appBarIcon: Color, error: Color)
Link copied to clipboard
data class PaymentsComposeColors(component: Color, colorComponentBorder: Color, colorComponentDivider: Color, subtitle: Color, colorTextCursor: Color, placeholderText: Color, onComponent: Color, material: Colors)
Link copied to clipboard
data class PaymentsComposeShapes(borderStrokeWidth: Dp, borderStrokeWidthSelected: Dp, material: Shapes)
Link copied to clipboard
data class PaymentsShapes(cornerRadius: Float, borderStrokeWidth: Float, borderStrokeWidthSelected: Float)
Link copied to clipboard
object PaymentsTheme
Link copied to clipboard
object PaymentsThemeDefaults
Link copied to clipboard
data class PaymentsTypography(fontWeightNormal: Int, fontWeightMedium: Int, fontWeightBold: Int, fontSizeMultiplier: Float, xxSmallFontSize: TextUnit, xSmallFontSize: TextUnit, smallFontSize: TextUnit, mediumFontSize: TextUnit, largeFontSize: TextUnit, xLargeFontSize: TextUnit, @FontRes fontFamily: Int)

Functions

Link copied to clipboard
fun Context.convertDpToPx(dp: Dp): Float
Link copied to clipboard
fun createTextSpanFromTextStyle(text: String?, context: Context, fontSizeDp: Dp, color: Color, @FontRes fontFamily: Int): SpannableString
Link copied to clipboard
fun Context.isSystemDarkTheme(): Boolean
Link copied to clipboard
fun PaymentsTheme(content: @Composable () -> Unit)
Link copied to clipboard
fun Color.shouldUseDarkDynamicColor(): Boolean
Link copied to clipboard
@Composable
@ReadOnlyComposable
fun PaymentsColors.toComposeColors(): PaymentsComposeColors
Link copied to clipboard
@Composable
@ReadOnlyComposable
fun PaymentsShapes.toComposeShapes(): PaymentsComposeShapes
Link copied to clipboard
@Composable
@ReadOnlyComposable
fun PaymentsTypography.toComposeTypography(): Typography