Interface

LazyListPrefetchResultScope

A scope for LazyListPrefetchScope.schedulePrefetch callbacks.

Source set: Common
@Deprecated(
    "LazyListPrefetchResultScope is deprecated alongside LazyListPrefetchStrategy. " +
        "Prefetching behavior should be configured using LazyLayoutCacheWindow."
)
public sealed interface LazyListPrefetchResultScope

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

Properties

index

Source set: Common
public val index: Int

The index of the prefetched item

mainAxisSize

Source set: Common
public val mainAxisSize: Int

The main axis size in pixels of the prefetched item

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: