Colors

data class Colors(@ColorInt val primary: Int, @ColorInt val surface: Int, @ColorInt val component: Int, @ColorInt val componentBorder: Int, @ColorInt val componentDivider: Int, @ColorInt val onComponent: Int, @ColorInt val onSurface: Int, @ColorInt val subtitle: Int, @ColorInt val placeholderText: Int, @ColorInt val appBarIcon: Int, @ColorInt val error: Int) : Parcelable

Constructors

Link copied to clipboard
fun Colors(primary: Color, surface: Color, component: Color, componentBorder: Color, componentDivider: Color, onComponent: Color, subtitle: Color, placeholderText: Color, onSurface: Color, appBarIcon: Color, error: Color)
Link copied to clipboard
fun Colors(@ColorInt primary: Int, @ColorInt surface: Int, @ColorInt component: Int, @ColorInt componentBorder: Int, @ColorInt componentDivider: Int, @ColorInt onComponent: Int, @ColorInt onSurface: Int, @ColorInt subtitle: Int, @ColorInt placeholderText: Int, @ColorInt appBarIcon: Int, @ColorInt error: Int)

Types

Link copied to clipboard
object Companion

Functions

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

Properties

Link copied to clipboard

The color used for icons in PaymentSheet, such as the close or back icons.

Link copied to clipboard

The color used for the background of inputs, tabs, and other components.

Link copied to clipboard

The color used for borders of inputs, tabs, and other components.

Link copied to clipboard

The color of the divider lines used inside inputs, tabs, and other components.

Link copied to clipboard
val error: Int

A color used to indicate errors or destructive actions in PaymentSheet.

Link copied to clipboard

The default color used for text and on other elements that live on components.

Link copied to clipboard

The color used for items appearing over the background in Payment Sheet.

Link copied to clipboard

The color used for input placeholder text.

Link copied to clipboard

A primary color used throughout PaymentSheet.

Link copied to clipboard

The color used for text of secondary importance. For example, this color is used for the label above input fields.

Link copied to clipboard

The color used for the surfaces (backgrounds) of PaymentSheet.