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
object PaymentsTheme
Link copied to clipboard
object PaymentsThemeConfig

Functions

Link copied to clipboard
fun Context.convertDpToPx(dp: Dp): Float
Link copied to clipboard
fun createTextSpanFromTextStyle(text: String?, context: Context, textStyle: TextStyle, 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 PaymentsThemeConfig.toComposeColors(): PaymentsComposeColors
Link copied to clipboard
@Composable
@ReadOnlyComposable
fun PaymentsThemeConfig.Shapes.toComposeShapes(): PaymentsComposeShapes
Link copied to clipboard
@Composable
@ReadOnlyComposable
fun PaymentsThemeConfig.Typography.toComposeTypography(): Typography