U
- The type of the model being preloaded.public static interface ListPreloader.PreloadModelProvider<U>
Modifier and Type | Method and Description |
---|---|
List<U> |
getPreloadItems(int position)
Returns a non null list of all models that need to be loaded for the list to display adapter
items in positions between
start and end . |
RequestBuilder |
getPreloadRequestBuilder(U item)
Returns a non null
RequestBuilder for a given item. |
List<U> getPreloadItems(int position)
start
and end
.
A list of any size can be returned so there can be multiple models per adapter position.
position
- The adapter position.RequestBuilder getPreloadRequestBuilder(U item)
RequestBuilder
for a given item. Must exactly match the request
used to load the resource in the list.
The target and context will be provided by the preloader.
item
- The model to load.