LazyGridPrefetchScope


Scope for callbacks in LazyGridPrefetchStrategy which allows prefetches to be requested.

Summary

Public functions

List<LazyLayoutPrefetchState.PrefetchHandle>

Schedules a prefetch for the given line index.

Cmn

Public functions

scheduleLinePrefetch

fun scheduleLinePrefetch(lineIndex: Int): List<LazyLayoutPrefetchState.PrefetchHandle>

Schedules a prefetch for the given line index. Requests are executed in the order they're requested. If a requested prefetch is no longer necessary (for example, due to changing scroll direction), the request should be canceled via LazyLayoutPrefetchState.PrefetchHandle.cancel.

See PrefetchScheduler.

Parameters
lineIndex: Int

index of the row or column to prefetch