PreloadModelProvider

interface PreloadModelProvider<U>

An implementation of PreloadModelProvider should provide all the models that should be preloaded.

Parameters

<U>

The type of the model being preloaded.

Functions

Link copied to clipboard
abstract fun getPreloadItems(position: Int): List<U>
Returns a List of models that need to be loaded for the list to display adapter items in positions between start and end.
Link copied to clipboard
abstract fun getPreloadRequestBuilder(item: U): RequestBuilder<out Any>
Returns a RequestBuilder for a given item on which load} has been called or null if no valid load can be started.