CardItem

sealed class CardItem

Inheritors

Types

Link copied to clipboard
data class ListItem(val id: String, val type: CardItemType, val titleText: String, val descriptionText: String, val placeholder: Content.Placeholder, val primaryAction: Action, val primaryActionText: String = "", val matchingRules: List<Int>, val exclusionRules: List<Int>) : CardItem

Represents both TWO_LINE_LIST_ITEM and FEATURED_TWO_LINE_SINGLE_ACTION_LIST_ITEM. The type field determines the visual styling.

Link copied to clipboard
data class SectionTitle(val id: String, val type: CardItemType, val titleText: String, val itemIDs: List<String>) : CardItem

Represents a section header that groups related list items. If all items referenced by itemIDs are excluded, this section title should also be excluded.

Properties

Link copied to clipboard
abstract val id: String
Link copied to clipboard
abstract val titleText: String
Link copied to clipboard
abstract val type: CardItemType