Package-level declarations

Types

Link copied to clipboard

Context for managing infinite pagination in a Compose UI.

Link copied to clipboard

Context for managing paginated data in a Compose UI.

Functions

Link copied to clipboard
fun <T> InfinityPagedComponent(page: Int, size: Int, loader: suspend InfinityPagedComponentContext<T>.(Pagination) -> PaginationResult<T>, predefinedScope: CoroutineScope? = null, block: InfinityPagedComponentContext<T>.(List<T>?) -> Unit)

Composable function for managing an infinitely paged component.

fun <T> InfinityPagedComponent(pageInfo: Pagination, loader: suspend InfinityPagedComponentContext<T>.(Pagination) -> PaginationResult<T>, predefinedScope: CoroutineScope? = null, block: InfinityPagedComponentContext<T>.(List<T>?) -> Unit)
fun <T> InfinityPagedComponent(size: Int, loader: suspend InfinityPagedComponentContext<T>.(Pagination) -> PaginationResult<T>, predefinedScope: CoroutineScope? = null, block: InfinityPagedComponentContext<T>.(List<T>?) -> Unit)

Overloaded composable function for an infinitely paged component.

Link copied to clipboard
fun <T> PagedComponent(pageInfo: Pagination, loader: suspend PagedComponentContext<T>.(Pagination) -> PaginationResult<T>, predefinedScope: CoroutineScope? = null, block: PagedComponentContext<T>.(PaginationResult<T>) -> Unit)

Overloaded composable function for paginated components with pagination info.

fun <T> PagedComponent(size: Int, loader: suspend PagedComponentContext<T>.(Pagination) -> PaginationResult<T>, predefinedScope: CoroutineScope? = null, block: PagedComponentContext<T>.(PaginationResult<T>) -> Unit)

Overloaded composable function for paginated components with only a size parameter.

Link copied to clipboard
fun <T> rememberInfinityPagedComponentContext(size: Int, page: Int = 0, scope: CoroutineScope = rememberCoroutineScope(), doReloadInInit: Boolean = true, loader: suspend InfinityPagedComponentContext<T>.(Pagination) -> PaginationResult<T>): InfinityPagedComponentContext<T>

Creates and remembers an InfinityPagedComponentContext for managing infinite pagination in a Compose UI. This function is used to create a persistent pagination context that survives recompositions.