PaywallColor

data class PaywallColor(val stringRepresentation: String, val underlyingColor: Color?)

Represents a color to be used by RevenueCatUI.

Constructors

Link copied to clipboard
constructor(stringRepresentation: String)

Creates a color from a Hex string: #RRGGBB or #RRGGBBAA.

constructor(@ColorInt colorInt: Int)
constructor(stringRepresentation: String, underlyingColor: Color?)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object Serializer : KSerializer<PaywallColor>

Properties

Link copied to clipboard

The color converted to a @ColorInt representation

Link copied to clipboard

The original Hex representation for this color.

Link copied to clipboard

The underlying Color.