CardListLayout

data class CardListLayout(val cardDimensionsMap: Map<String, CardDimensions>, val defaultCardDimensions: CardDimensions, val listTopOffset: Double, val totalHeight: Double, val maxStackIndex: Int, val maxVisibleStackOffsets: Int, val detailBottomPadding: Double, val isTopContentEffectivelyVisible: Boolean, val effectiveTopContentHeight: Double)

Computed layout metadata for a card list container.

Constructors

Link copied to clipboard
constructor(cardDimensionsMap: Map<String, CardDimensions>, defaultCardDimensions: CardDimensions, listTopOffset: Double, totalHeight: Double, maxStackIndex: Int, maxVisibleStackOffsets: Int, detailBottomPadding: Double, isTopContentEffectivelyVisible: Boolean, effectiveTopContentHeight: Double)

Properties

Link copied to clipboard

map from card identifier to its computed CardDimensions.

Link copied to clipboard

default dimensions for placeholder / empty state.

Link copied to clipboard

bottom padding for the focused detail view to avoid stack overlap.

Link copied to clipboard

effective height of the top content including spacing.

Link copied to clipboard

whether top content is currently visible.

Link copied to clipboard

top offset of the list items including padding and effective top content.

Link copied to clipboard

index of the bottom-most stack card.

Link copied to clipboard

number of visible depth steps in the bottom stack.

Link copied to clipboard

total scrollable content height.

Functions

Link copied to clipboard
fun getDimensions(cardIdentifier: String): CardDimensions

Gets dimensions for a specific card, or falls back to defaultCardDimensions.