LazyListScope

interface LazyListScope

Receiver scope which is used by LazyColumn and LazyRow.

Functions

Link copied to clipboard
abstract fun item(content: @Composable () -> Unit)

Adds a single item.

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

Adds a count of items.

Link copied to clipboard
inline fun <T> LazyListScope.items(items: Array<T>, crossinline itemContent: @Composable (item: T) -> Unit)

Adds an array of items.

inline fun <T> LazyListScope.items(items: List<T>, crossinline itemContent: @Composable (item: T) -> Unit)

Adds a list of items.

Link copied to clipboard
inline fun <T> LazyListScope.itemsIndexed(items: Array<T>, crossinline itemContent: @Composable (index: Int, item: T) -> Unit)

Adds an array of items where the content of an item is aware of its index.

inline fun <T> LazyListScope.itemsIndexed(items: List<T>, crossinline itemContent: @Composable (index: Int, item: T) -> Unit)

Adds a list of items where the content of an item is aware of its index.