LazyGridScope
interface LazyGridScope
Receiver scope which is used by LazyVerticalGrid.
Functions
Link copied to clipboard
Adds a single item to the scope.
Link copied to clipboard
Adds a count of items.
Link copied to clipboard
inline fun <T> LazyGridScope.items(items: Array<T>, crossinline itemContent: @Composable LazyItemScope.(item: T) -> Unit)
Adds an array of items.
inline fun <T> LazyGridScope.items(items: List<T>, crossinline itemContent: @Composable LazyItemScope.(item: T) -> Unit)
Adds a list of items.
Link copied to clipboard
inline fun <T> LazyGridScope.itemsIndexed(items: Array<T>, crossinline itemContent: @Composable LazyItemScope.(index: Int, item: T) -> Unit)
Adds an array of items where the content of an item is aware of its index.
inline fun <T> LazyGridScope.itemsIndexed(items: List<T>, crossinline itemContent: @Composable LazyItemScope.(index: Int, item: T) -> Unit)
Adds a list of items where the content of an item is aware of its index.