LazyListState

open class LazyListState

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()

Properties

Link copied to clipboard

Bounds of what the user is looking at. Everything else is placeholders!

Link copied to clipboard
Link copied to clipboard

How many items to load in anticipation of scrolling down.

Link copied to clipboard

How many items to load in anticipation of scrolling up.

Link copied to clipboard
var programmaticScrollIndex: ScrollItemIndex

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
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.