|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
U
- The type of the model being preloaded.public static interface ListPreloader.PreloadModelProvider<U>
An implementation of PreloadModelProvider should provide all the models that should be preloaded.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |