estimateItemsInViewPort

fun estimateItemsInViewPort(collectionSize: Size, childSize: Size)

Estimates the number of items that can fit in the viewport based on measuring a sample item. This calculation is performed only once when estimatedItemsInViewPort is unset and helps determine how many items should be prepared for rendering to optimize performance.

Parameters

collectionSize

The size of the collection container (width and height)

childSize

The size of a sample child item used for estimation (width and height)