ScrollOptimizedLoadingStrategy
class ScrollOptimizedLoadingStrategy(defaultPreloadItemCount: Int = DEFAULT_PRELOAD_ITEM_COUNT, scrollInProgressPreloadItemCount: Int = SCROLL_IN_PROGRESS_PRELOAD_ITEM_COUNT, primaryPreloadItemCount: Int = PRIMARY_PRELOAD_ITEM_COUNT, secondaryPreloadItemCount: Int = SECONDARY_PRELOAD_ITEM_COUNT) : LoadingStrategy
A loading strategy that preloads items above and below the visible range.
When scrolling, this loads more items in the direction the user is scrolling to.
The size of the loading window is kept small while scrolling. It grows when scrolling stops.
This will retain already-loaded items that it wouldn't load otherwise.
Properties
Link copied to clipboard
Bounds of what the user is looking at. Everything else is placeholders!
Link copied to clipboard
Returns the index of the last item that is visible on screen. The item may be partially visible.
Link copied to clipboard
Update this to trigger a programmatic scroll. This may be updated multiple times, including when the previous scroll state is restored.
Functions
Link copied to clipboard
Link copied to clipboard
React to a user-initiated scroll to the target range.
Link copied to clipboard
Perform a programmatic scroll to firstVisibleIndex.