LazyLayoutCacheWindow

Function
Common
@ExperimentalFoundationApi
fun LazyLayoutCacheWindow(ahead: Dp = 0.dp, behind: Dp = 0.dp): LazyLayoutCacheWindow

A Dp based LazyLayoutCacheWindow.

Parameters

ahead The size of the ahead window to be used as per LazyLayoutCacheWindow.calculateAheadWindow.
behind The size of the behind window to be used as per LazyLayoutCacheWindow.calculateBehindWindow.
Common
@ExperimentalFoundationApi
fun LazyLayoutCacheWindow(
    @FloatRange(from = 0.0) aheadFraction: Float = 0.0f,
    @FloatRange(from = 0.0) behindFraction: Float = 0.0f,
): LazyLayoutCacheWindow

Creates a LazyLayoutCacheWindow based off a fraction of the viewport.

Parameters

aheadFraction The fraction of the viewport to be used for the ahead window.
behindFraction The fraction of the viewport to be used for the behind window.