NestedPrefetchScope


A scope which allows nested prefetches to be requested for the precomposition of a LazyLayout.

Summary

Public functions

Unit

Requests a child index to be prefetched as part of the prefetch of a parent LazyLayout.

Cmn
Unit
schedulePrefetch(index: Int, constraints: Constraints)

Requests a child index to be prefetched as part of the prefetch of a parent LazyLayout.

Cmn

Public functions

schedulePrefetch

fun schedulePrefetch(index: Int): Unit

Requests a child index to be prefetched as part of the prefetch of a parent LazyLayout.

The prefetch will only do the precomposition for the new item. If you also want to premeasure please use a second overload accepting a Constraints param.

Parameters
index: Int

item index to prefetch.

schedulePrefetch

fun schedulePrefetch(index: Int, constraints: Constraints): Unit

Requests a child index to be prefetched as part of the prefetch of a parent LazyLayout.

Parameters
index: Int

the index of the child to prefetch.

constraints: Constraints

Constraints to use for premeasuring. If null, the child will not be premeasured.