ContentCardStyling

open class ContentCardStyling(val modifier: ERROR CLASS: Symbol not found for Modifier?? = null, val pinnedResourceId: Int = R.drawable.com_braze_content_card_icon_pinned, val pinnedImageAlignment: ERROR CLASS: Symbol not found for Alignment = Alignment.TopEnd, val unreadIndicatorColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, val pinnedComposable: () -> Unit? = null, val imageComposable: (Card) -> Unit? = null, val borderColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, val borderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val topBorderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val startBorderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val endBorderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val bottomBorderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val borderRadius: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val shadowColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, val shadowSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val shadowRadius: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val maxCardWidth: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, val listPadding: ERROR CLASS: Symbol not found for Dp = 32.dp, val cardBackgroundColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, val titleTextStyle: ERROR CLASS: Symbol not found for TextStyle?? = null, val descriptionTextStyle: ERROR CLASS: Symbol not found for TextStyle?? = null, val actionHintTextStyle: ERROR CLASS: Symbol not found for TextStyle?? = null, val titleTextColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, val descriptionTextColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, val actionHintTextColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, val imageOnlyContentCardStyle: BrazeImageOnlyContentCardStyling = BrazeImageOnlyContentCardStyling(), val textAnnouncementContentCardStyle: BrazeTextAnnouncementContentCardStyling = BrazeTextAnnouncementContentCardStyling(), val shortNewsContentCardStyle: BrazeShortNewsContentCardStyling = BrazeShortNewsContentCardStyling(), val captionedImageContentCardStyle: BrazeCaptionedImageContentCardStyling = BrazeCaptionedImageContentCardStyling())

This specifies the various styles to use for rendering Content Cards.

Values will be pulled from the specific card type (imageOnlyContentCardStyle, textAnnouncementContentCardStyle, shortNewsContentCardStyle, and captionedImageContentCardStyle). If the value isn't present there, then it will used the more general value for all card types.

If the modifier is specified, it will be used directly with very little modification.

Note: Due to how Jetpack Compose works, listPadding is passed in here so that additional padding can be added to the cards. This is needed to allowed swiped cards to be swiped completely out of view. You will also need to add this to your modifier's padding if you specify your own.

Constructors

Link copied to clipboard
constructor(modifier: ERROR CLASS: Symbol not found for Modifier?? = null, pinnedResourceId: Int = R.drawable.com_braze_content_card_icon_pinned, pinnedImageAlignment: ERROR CLASS: Symbol not found for Alignment = Alignment.TopEnd, unreadIndicatorColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, pinnedComposable: () -> Unit? = null, imageComposable: (Card) -> Unit? = null, borderColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, borderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, topBorderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, startBorderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, endBorderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, bottomBorderSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, borderRadius: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, shadowColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, shadowSize: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, shadowRadius: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, maxCardWidth: ERROR CLASS: Symbol not found for Dp = Dp.Unspecified, listPadding: ERROR CLASS: Symbol not found for Dp = 32.dp, cardBackgroundColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, titleTextStyle: ERROR CLASS: Symbol not found for TextStyle?? = null, descriptionTextStyle: ERROR CLASS: Symbol not found for TextStyle?? = null, actionHintTextStyle: ERROR CLASS: Symbol not found for TextStyle?? = null, titleTextColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, descriptionTextColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, actionHintTextColor: ERROR CLASS: Symbol not found for Color = Color.Unspecified, imageOnlyContentCardStyle: BrazeImageOnlyContentCardStyling = BrazeImageOnlyContentCardStyling(), textAnnouncementContentCardStyle: BrazeTextAnnouncementContentCardStyling = BrazeTextAnnouncementContentCardStyling(), shortNewsContentCardStyle: BrazeShortNewsContentCardStyling = BrazeShortNewsContentCardStyling(), captionedImageContentCardStyle: BrazeCaptionedImageContentCardStyling = BrazeCaptionedImageContentCardStyling())

Properties

Link copied to clipboard
val actionHintTextColor: ERROR CLASS: Symbol not found for Color

Color of the card action hint text. If not specified, it will fallback to R.color.com_braze_content_cards_action_hint_text_color

Link copied to clipboard
val actionHintTextStyle: ERROR CLASS: Symbol not found for TextStyle??

TextStyle used for the title. If this is specified, other title text customization will be ignored.

Link copied to clipboard
val borderColor: ERROR CLASS: Symbol not found for Color

Border color. If not specified, it will fallback to R.color.com_braze_content_card_background_border

Link copied to clipboard
val borderRadius: ERROR CLASS: Symbol not found for Dp

Size of the border radius. If not specified, it will fallback to R.dimen.com_braze_content_card_background_corner_radius

Link copied to clipboard
val borderSize: ERROR CLASS: Symbol not found for Dp

Size of the border. This is used to handle all sides at once. If a specific size is specified (e.g. topBorderSize), that will be used instead.

Link copied to clipboard
val bottomBorderSize: ERROR CLASS: Symbol not found for Dp

Size of the top border. If not specified, it will fallback to borderSize, and then R.dimen.com_braze_content_card_background_border_bottom

Link copied to clipboard

Style to use specifically for Captioned Image Content Cards. See note above.

Link copied to clipboard
val cardBackgroundColor: ERROR CLASS: Symbol not found for Color

Color of the card background. If not specified, it will fallback to R.color.com_braze_content_card_background

Link copied to clipboard
val descriptionTextColor: ERROR CLASS: Symbol not found for Color

Color of the card description text. If not specified, it will fallback to R.color.com_braze_content_cards_description

Link copied to clipboard
val descriptionTextStyle: ERROR CLASS: Symbol not found for TextStyle??

TextStyle used for the title. If this is specified, other title text customization will be ignored.

Link copied to clipboard
val endBorderSize: ERROR CLASS: Symbol not found for Dp

Size of the border on the end side. If not specified, it will fallback to borderSize, and then R.dimen.com_braze_content_card_background_border_right

Link copied to clipboard

A Composable function that accepts a Card and will render the image. If not specified, default image library is used (Coil)

Link copied to clipboard

Style to use specifically for Image Only Content Cards. See note above.

Link copied to clipboard
val listPadding: ERROR CLASS: Symbol not found for Dp

Size of the list padding. See note above.

Link copied to clipboard
val maxCardWidth: ERROR CLASS: Symbol not found for Dp

Maximum width of the card. If not specified, it will fallback to R.dimen.com_braze_content_cards_max_width

Link copied to clipboard
val modifier: ERROR CLASS: Symbol not found for Modifier??

to use for the card. If specified, it will be used directly, bypassing many of the other values here.

Link copied to clipboard

A Composable function that will render on pinned cards. If this is specified, then the other pinned paramaters are not used.

Link copied to clipboard
val pinnedImageAlignment: ERROR CLASS: Symbol not found for Alignment

The alignment of the pinned image.

Link copied to clipboard

The drawable resource ID of the image used for pinned cards.

Link copied to clipboard
val shadowColor: ERROR CLASS: Symbol not found for Color

Color of the card shadow. If not specified, it will fallback to R.color.com_braze_content_card_background_shadow

Link copied to clipboard
val shadowRadius: ERROR CLASS: Symbol not found for Dp

Size of the card shadow radius. If not specified, it will fallback to R.dimen.com_braze_content_card_background_shadow_radius

Link copied to clipboard
val shadowSize: ERROR CLASS: Symbol not found for Dp

Size of the card shadow. If not specified, it will fallback to R.dimen.com_braze_content_card_background_shadow_bottom

Link copied to clipboard

Style to use specifically for Short News Content Cards. See note above.

Link copied to clipboard
val startBorderSize: ERROR CLASS: Symbol not found for Dp

Size of the border on the start side. If not specified, it will fallback to borderSize, and then R.dimen.com_braze_content_card_background_border_left

Link copied to clipboard

Style to use specifically for Text Announcement Content Cards. See note above.

Link copied to clipboard
val titleTextColor: ERROR CLASS: Symbol not found for Color

Color of the card title text. If not specified, it will fallback to R.color.com_braze_content_cards_title

Link copied to clipboard
val titleTextStyle: ERROR CLASS: Symbol not found for TextStyle??

TextStyle used for the title. If this is specified, other title text customization will be ignored.

Link copied to clipboard
val topBorderSize: ERROR CLASS: Symbol not found for Dp

Size of the top border. If not specified, it will fallback to borderSize, and then R.dimen.com_braze_content_card_background_border_top

Link copied to clipboard
val unreadIndicatorColor: ERROR CLASS: Symbol not found for Color

The color of the unread indicator.

Functions

Link copied to clipboard
fun actionHintTextColor(type: CardType): ERROR CLASS: Symbol not found for Color
Link copied to clipboard
fun borderColor(type: CardType): ERROR CLASS: Symbol not found for Color
Link copied to clipboard
fun borderRadius(type: CardType): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun borderSize(type: CardType): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun bottomBorderSize(type: CardType): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun cardBackgroundColor(type: CardType): ERROR CLASS: Symbol not found for Color
Link copied to clipboard
fun cardModifier(type: CardType, extraPadding: ERROR CLASS: Symbol not found for Dp): ERROR CLASS: Symbol not found for Modifier

Return a modifier to be used for a specific card type. If a modifier has been specified for the specific card type, it will be used. If no modifier has been specified for the specific card type, then the general modifier will be used.

Link copied to clipboard
fun descriptionTextColor(type: CardType): ERROR CLASS: Symbol not found for Color
Link copied to clipboard
fun descriptionTextStyle(type: CardType): ERROR CLASS: Symbol not found for TextStyle
Link copied to clipboard
fun endBorderSize(type: CardType): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun hintActionTextStyle(type: CardType): ERROR CLASS: Symbol not found for TextStyle
Link copied to clipboard
fun imageComposable(type: CardType): (Card) -> Unit?
Link copied to clipboard
fun maxCardWidth(): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun pinnedAlignment(card: Card): ERROR CLASS: Symbol not found for Alignment
Link copied to clipboard
fun pinnedComposable(type: CardType): () -> Unit?
Link copied to clipboard
Link copied to clipboard
fun shadowColor(type: CardType): ERROR CLASS: Symbol not found for Color
Link copied to clipboard
fun shadowRadius(type: CardType): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun shadowSize(type: CardType): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun startBorderSize(type: CardType): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun titleTextColor(type: CardType): ERROR CLASS: Symbol not found for Color
Link copied to clipboard
fun titleTextStyle(type: CardType): ERROR CLASS: Symbol not found for TextStyle
Link copied to clipboard
fun topBorderSize(type: CardType): ERROR CLASS: Symbol not found for Dp
Link copied to clipboard
fun unreadIndicatorColor(type: CardType): ERROR CLASS: Symbol not found for Color