LazyListScope

interface LazyListScope

Receives the items of a LazyColumn.

Functions

Link copied to clipboard
abstract fun item(key: Any? = null, content: @Composable () -> Unit)

Adds a single item.

Link copied to clipboard
abstract fun items(count: Int, key: (index: Int) -> Any? = null, itemContent: @Composable (index: Int) -> Unit)

Adds count items.

Link copied to clipboard
inline fun <T> LazyListScope.items(items: List<T>, noinline key: (item: T) -> Any? = null, crossinline itemContent: @Composable (item: T) -> Unit)

Adds an item for each of items.

Link copied to clipboard
inline fun <T> LazyListScope.itemsIndexed(items: List<T>, noinline key: (index: Int, item: T) -> Any? = null, crossinline itemContent: @Composable (index: Int, item: T) -> Unit)

Adds an item for each of items, passing its index as well.