LazyLoadStrategy

fun interface LazyLoadStrategy<T>

Interface that defines the strategy for determining when to load more items.

Implement this interface to customize when the infinite scrolling should trigger the load more callback based on the current scroll state.

Parameters

T

The type of scrollable state to evaluate

Functions

Link copied to clipboard
abstract fun shouldLoadMore(state: T): Boolean

Determines if more data should be loaded based on the current scroll state.