# dev.inmo.micro_utils.pagination.compose

# Package-level declarations

## Types

InfinityPagedComponentContext
Link copied to clipboard
class InfinityPagedComponentContext < T >

Context for managing infinite pagination in a Compose UI.

PagedComponentContext
Link copied to clipboard
class PagedComponentContext < T >

Context for managing paginated data in a Compose UI.

## Functions

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

Overloaded composable function for an infinitely paged component.

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

Overloaded composable function for paginated components with pagination info.

fun < T > PagedComponent (preload: PaginationResult < T >, loader: suspend PagedComponentContext < T >.( Pagination ) -> PaginationResult < T >, block: PagedComponentContext < T >.( PaginationResult < T >) -> Unit )

Overloaded composable function for paginated components with preloaded data.

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

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

fun < T > PagedComponent (initialPage: Int , size: Int , loader: suspend PagedComponentContext < T >.( Pagination ) -> PaginationResult < T >, block: PagedComponentContext < T >.( PaginationResult < T >) -> Unit )

Overloaded composable function for paginated components with an initial page.