LazyLayoutPrefetchState.PrefetchHandle
- Common/All
- Android/JVM
-
Cmn
sealed interface LazyLayoutPrefetchState.PrefetchHandle
Summary
Public functions
cancel
fun cancel(): Unit
Notifies the prefetcher that previously scheduled item is no longer needed. If the item was precomposed already it will be disposed.
markAsUrgent
fun markAsUrgent(): Unit
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.