getPreloadItems

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.

A list of any size can be returned so there can be multiple models per adapter position.

Every model returned by this method is expected to produce a valid RequestBuilder in getPreloadRequestBuilder. If that's not possible for any set of models, avoid including them in the List returned by this method.

Although it's acceptable for the returned List to contain null models, it's best to filter them from the list instead of adding null to avoid unnecessary logic and expanding the size of the List

Parameters

position

The adapter position.