Source set: Android
public interface LazyVerticalGridScope
Receiver scope which is used by LazyColumn.
Functions
item
Source set: Android
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 |
items
Source set: Android
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 |
Members
Companion
Source set: Android
public companion object
Properties
UnspecifiedItemId
Source set: Android
public const val UnspecifiedItemId: Long = Long.MIN_VALUE