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
val appBarIcon: Int

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

Link copied to clipboard
val component: Int

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

Link copied to clipboard
val componentBorder: Int

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

Link copied to clipboard
val componentDivider: Int

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
val onComponent: Int

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

Link copied to clipboard
val onSurface: Int

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

Link copied to clipboard
val placeholderText: Int

The color used for input placeholder text.

Link copied to clipboard
val primary: Int

A primary color used throughout PaymentSheet.

Link copied to clipboard
val subtitle: Int

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

Link copied to clipboard
val surface: Int

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