LazyVerticalGridScope

Interface
Android
@JvmDefaultWithCompatibility

@LazyScopeMarker
public interface LazyVerticalGridScope

Receiver scope which is used by LazyColumn.

Functions

public fun item(itemId: Long = UnspecifiedItemId, content: @Composable LazyItemScope.() -> Unit)

Adds a single item.

Parameters

itemId a stable and unique id representing the item. The value may not be less than or equal to -2^62, as these values are reserved by the Glance API. Specifying the list item ids will maintain the scroll position through app widget updates in Android S and higher devices.
content the content of the item
public fun items(
        count: Int,
        itemId: ((index: Int) -> Long) = { UnspecifiedItemId },
        itemContent: @Composable LazyItemScope.(index: Int) -> Unit,
    )

Adds a count of items.

Parameters

count the count of items
itemId a factory of stable and unique ids representing the item. The value may not be less than or equal to -2^62, as these values are reserved by the Glance API. Specifying the list item ids will maintain the scroll position through app widget updates in Android S and higher devices.
itemContent the content displayed by a single item