EpoxyModelPreloader

abstract class EpoxyModelPreloader<T : EpoxyModel<*>, U : ViewMetadata?, P : PreloadRequestHolder>(modelType: Class<T>, preloadableViewIds: List<Int>)

Describes how view content for an EpoxyModel should be preloaded.

Parameters

T

The type of EpoxyModel that this preloader applies to

U

The type of view metadata to provide to the request builder.

P

The type of PreloadRequestHolder that will execute the preload request

Constructors

EpoxyModelPreloader
Link copied to clipboard
fun <T : EpoxyModel<*>> EpoxyModelPreloader(modelType: Class<T>, preloadableViewIds: List<Int>)
The type of EpoxyModel that this preloader applies to

Types

Companion
Link copied to clipboard
object Companion

Functions

buildViewMetadata
Link copied to clipboard
abstract fun buildViewMetadata(view: View): U
Provide optional metadata about a view.
startPreload
Link copied to clipboard
abstract fun startPreload(epoxyModel: T, preloadTarget: P, viewData: ViewData<U>)
Start a preload request with the given target.
viewSignature
Link copied to clipboard
open fun viewSignature(epoxyModel: T): Any?
An optional signature to differentiate views within the same model.

Properties

modelType
Link copied to clipboard
val modelType: Class<T>
preloadableViewIds
Link copied to clipboard
val preloadableViewIds: List<Int>
A list of view ids, one for each view that should be preloaded.