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 . |
GenericRequestBuilder |
getPreloadRequestBuilder(U item)
Returns a non null
GenericRequestBuilder 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.GenericRequestBuilder getPreloadRequestBuilder(U item)
GenericRequestBuilder
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.