BenefitTextStyle

data class BenefitTextStyle(val fontWeight: FontWeight? = null, val earnFontColor: Color? = null, val redeemFontColor: Color? = null)

Styling for the benefit text within Catch widgets. The benefit text displays the earned or redeemable credits to the user.

Examples:

  • "You earned $x"

  • "Redeem $x"

  • "Earn x% credit".

This portion of the text can be highlighted with a different text color and/or font weight. All other text attributes will be inherited from the WidgetTextStyle.

See BenefitTextStyle.create for apps that do not have Compose dependencies used in the primary constructor.

Constructors

Link copied to clipboard
constructor(fontWeight: FontWeight? = null, earnFontColor: Color? = null, redeemFontColor: Color? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val earnFontColor: Color? = null

Configures the text color of the benefit text in the case when a user is earning credits. Example: "Earn $x credit"

Link copied to clipboard
val fontWeight: FontWeight? = null

Configures the font weight of the benefit text.

Link copied to clipboard
val redeemFontColor: Color? = null

Configures the text color of the benefit text in the case when a user is redeeming credits. Example: "Redeem $x"