Interface

LazyLayoutPrefetchState.PrefetchHandle

A handle to control some aspects of the prefetch request.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
sealed interface PrefetchHandle

A handle to control some aspects of the prefetch request.

Functions

cancel

fun cancel()

Notifies the prefetcher that previously scheduled item is no longer needed. If the item was precomposed already it will be disposed.


markAsUrgent

fun markAsUrgent()

Marks this prefetch request as urgent, which is a way to communicate that the requested item is expected to be needed during the next frame.

For urgent requests we can proceed with doing the prefetch even if the available time in the frame is less than we spend on similar prefetch requests on average.