CollectionLayoutScope

class CollectionLayoutScope(val layoutInfo: LayoutInfo, val collectionConstraints: SizeConstraints, val collectionSize: IntSize, val collectionItems: List<CollectionItem<*>>, val isVertical: Boolean, val wrapInMainAxis: Boolean, val crossAxisWrapMode: CrossAxisWrapMode, val firstVisiblePosition: Int, val lastVisiblePosition: Int) : ItemSizeConstraintsProviderScope

Constructors

Link copied to clipboard
constructor(layoutInfo: LayoutInfo, collectionConstraints: SizeConstraints, collectionSize: IntSize, collectionItems: List<CollectionItem<*>>, isVertical: Boolean, wrapInMainAxis: Boolean, crossAxisWrapMode: CrossAxisWrapMode, firstVisiblePosition: Int, lastVisiblePosition: Int)

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
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Measures the size of the Collection.

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?)