Interface

LazyGridPrefetchResultScope

A scope for LazyGridPrefetchScope.scheduleLinePrefetch callbacks.

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

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

Properties

lineItemCount

Source set: Common
public val lineItemCount: Int

The number of items in this prefetched line.

lineIndex

Source set: Common
public val lineIndex: Int

The index of the prefetched line

Functions

getMainAxisSize

Source set: Common
public fun getMainAxisSize(itemIndexInLine: Int): Int

Returns the main axis size in pixels of a prefecthed item in this line. itemIndexInLine is the item index from 0 to lineItemCount -1.

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: