Interface

LazyLayoutPrefetchState.PrefetchResultScope

A scope for schedulePrecompositionAndPremeasure callbacks.

Source set: Common
public sealed interface PrefetchResultScope

A scope for schedulePrecompositionAndPremeasure callbacks. The scope provides additional information about a prefetched item.

Properties

placeablesCount

Source set: Common
public val placeablesCount: Int

The amount of placeables composed into this item.

index

Source set: Common
public val index: Int

The index of the prefetched item.

Functions

getSize

Source set: Common
public fun getSize(@IntRange(from = 0) placeableIndex: Int): IntSize

Retrieves the latest measured size for a given placeable placeableIndex in pixels.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: