LazyLayoutCacheWindow

Function

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

A Dp based LazyLayoutCacheWindow.

Parameters

aheadThe size of the ahead window to be used as per LazyLayoutCacheWindow.calculateAheadWindow.
behindThe 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

aheadFractionThe fraction of the viewport to be used for the ahead window.
behindFractionThe fraction of the viewport to be used for the behind window.