PrefetchRequestScope

Interface

Common

Deprecated Customization of PrefetchScheduler is no longer supported. LazyLayout will attach an appropriate scheduler internally. If you needed to customize it please file a Feature Request.

@ExperimentalFoundationApi
interface PrefetchRequestScope

Scope for PrefetchRequest.execute, supplying info about how much time it has to execute requests and the type of execution mode.

Functions

fun availableTimeNanos(): Long

How much time is available to do prefetch work. Implementations of PrefetchRequest should do their best to fit their work into this time without going over.