Typography

data class Typography constructor(val sizeScaleFactor: Float, @FontRes val fontResId: Int?, val custom: PaymentSheet.Typography.Custom) : Parcelable

Constructors

Link copied to clipboard
constructor(sizeScaleFactor: Float, @FontRes fontResId: Int?)
constructor(sizeScaleFactor: Float, @FontRes fontResId: Int?, custom: PaymentSheet.Typography.Custom)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Custom(val h1: PaymentSheet.Typography.Font? = null) : Parcelable
Link copied to clipboard
data class Font(@FontRes val fontFamily: Int? = null, val fontSizeSp: Float? = null, val fontWeight: Int? = null, val letterSpacingSp: Float? = null) : Parcelable

Properties

Link copied to clipboard

Custom font configuration for specific text styles Note: When set, these fonts override the default font calculations for their respective text styles

Link copied to clipboard

The font used in text. This should be a resource ID value.

Link copied to clipboard

The scale factor for all fonts in PaymentSheet, the default value is 1.0. When this value increases fonts will increase in size and decrease when this value is lowered.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)