ItemSizeConstraintsProviderScope

sealed class ItemSizeConstraintsProviderScope : PrepareScope

Class that provides scope and context information for item size constraint calculations in collection layouts. This class encapsulates the essential parameters needed to determine how individual items should be sized within a collection.

Parameters

layoutInfo

Information about the layout configuration and properties

collectionConstraints

Size constraints applied to the entire collection

collectionSize

The actual size of the collection, null if not yet determined

isVertical

Whether the collection is oriented vertically (true) or horizontally (false)

wrapInMainAxis

Whether the collection should wrap content in the main axis direction

crossAxisWrapMode

Defines how items should wrap in the cross axis

Inheritors

Properties

Link copied to clipboard
val collectionConstraints: SizeConstraints
Link copied to clipboard
Link copied to clipboard
val collectionSize: IntSize
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun clearAll()
Link copied to clipboard
fun ItemSizeConstraintsProviderScope.getChildSizeConstraints(item: CollectionItem<*>, collectionSize: IntSize = this.collectionSize): SizeConstraints

Calculates the size constraints for child items within a RecyclerView-like collection.

Link copied to clipboard
Link copied to clipboard
fun saveState(state: Any?)