toState

@JvmName(name = "toStateList")
fun <Key : Any, PageItem> Pageable<Key, PageItem>.toState(state: LazyListState, coroutineContext: CoroutineContext = EmptyCoroutineContext, key: (PageItem) -> Any = ::pageItemKey): PageableComposeState<PageItem>

Binds a Pageable to a LazyListState, enabling automatic page fetching as items become visible.


@JvmName(name = "toStateGrid")
fun <Key : Any, PageItem> Pageable<Key, PageItem>.toState(state: LazyGridState, coroutineContext: CoroutineContext = EmptyCoroutineContext, key: (PageItem) -> Any = ::pageItemKey): PageableComposeState<PageItem>

Binds a Pageable to a LazyGridState, enabling automatic page fetching as items become visible.


@JvmName(name = "toStateStaggeredGrid")
fun <Key : Any, PageItem> Pageable<Key, PageItem>.toState(state: LazyStaggeredGridState, coroutineContext: CoroutineContext = EmptyCoroutineContext, key: (PageItem) -> Any = ::pageItemKey): PageableComposeState<PageItem>

Binds a Pageable to a LazyStaggeredGridState, enabling automatic page fetching as items become visible.