Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface SelectableLazyItemScope : LazyItemScope
Link copied to clipboard

Interface defining the scope for building a selectable lazy list.

Link copied to clipboard
class SelectableLazyListState(val lazyListState: LazyListState, val selectionMode: SelectionMode = SelectionMode.None) : ScrollableState

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

Link copied to clipboard

Specifies the selection mode for a selectable lazy list.

Properties

Functions

Link copied to clipboard
@Composable
fun rememberSelectableLazyListState(firstVisibleItemIndex: Int = 0, firstVisibleItemScrollOffset: Int = 0, selectionMode: SelectionMode = SelectionMode.Multiple): SelectableLazyListState

Remembers the state of a selectable lazy list.

Link copied to clipboard
@Composable
fun SelectableLazyColumn(modifier: Modifier = Modifier, state: SelectableLazyListState = rememberSelectableLazyListState(selectionMode = SelectionMode.Multiple), contentPadding: PaddingValues = PaddingValues(0.dp), reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, keyActions: KeyBindingScopedActions = DefaultSelectableLazyColumnKeyActions(state), pointerHandlingScopedActions: PointerEventScopedActions = DefaultSelectableLazyColumnPointerEventAction(state), content: SelectableLazyListScope.() -> Unit)

A composable that displays a scrollable and selectable list of items in a column arrangement.

Link copied to clipboard
@Composable
fun LazyItemScope.SelectableLazyItemScope(isFocused: Boolean = false, isSelected: Boolean = false): SelectableLazyItemScope