SelectableLazyListState

class SelectableLazyListState(val lazyListState: LazyListState) : ScrollableState, SelectableScope

State object for a selectable lazy list, which extends ScrollableState.

Parameters

lazyListState

The state object for the underlying lazy list.

Constructors

Link copied to clipboard
constructor(lazyListState: LazyListState)

Properties

Link copied to clipboard
open override val canScrollBackward: Boolean
Link copied to clipboard
open override val canScrollForward: Boolean
Link copied to clipboard

The index of the first item that is visible.

Link copied to clipboard

The scroll offset of the first visible item. Scrolling forward is positive - i.e., the amount that the item is offset backwards.

Link copied to clipboard
val interactionSource: InteractionSource

InteractionSource that will be used to dispatch drag events when this list is being dragged. If you want to know whether the fling (or animated scroll) is in progress, use isScrollInProgress.

Link copied to clipboard
open override val isScrollInProgress: Boolean
Link copied to clipboard
Link copied to clipboard
val layoutInfo: LazyListLayoutInfo
Link copied to clipboard
val lazyListState: LazyListState
Link copied to clipboard
open override var selectedKeys: List<Any>

Functions

Link copied to clipboard
open override fun dispatchRawDelta(delta: Float): Float
Link copied to clipboard
open suspend override fun scroll(scrollPriority: MutatePriority, block: suspend ScrollScope.() -> Unit)
Link copied to clipboard
suspend fun scrollToItem(itemIndex: Int, animateScroll: Boolean = false, scrollOffset: Int = 0)