LazyListState

open class LazyListState(val strategy: LoadingStrategy = ScrollOptimizedLoadingStrategy())

A state object that can be hoisted to control and observe scrolling.

In most cases, this will be created via rememberLazyListState.

Constructors

Link copied to clipboard
constructor(strategy: LoadingStrategy = ScrollOptimizedLoadingStrategy())

Properties

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.

Link copied to clipboard

Functions

Link copied to clipboard
fun loadRange(itemCount: Int): IntRange
Link copied to clipboard
fun onUserScroll(firstIndex: Int, lastIndex: Int)

React to a user-initiated scroll.

Link copied to clipboard
fun programmaticScroll(firstIndex: Int, animated: Boolean, clobberUserScroll: Boolean = true)

Perform a programmatic scroll.