toggle menu
apollo-kotlin-compose-support
0.0.3-SNAPSHOT
androidJvm
switch theme
search in API
compose-paging-support
/
com.apollographql.compose.paging
/
Pager
Pager
@
ApolloExperimental
fun
<
Data
:
Operation.Data
,
Value
:
Any
>
Pager
(
config
:
PagingConfig
,
appendCall
:
suspend
(
response
:
ApolloResponse
<
Data
>
?
,
loadSize
:
Int
)
->
ApolloCall
<
Data
>
?
,
itemsAfter
:
suspend
(
response
:
ApolloResponse
<
Data
>
,
loadedItemsCount
:
Int
)
->
Int
=
{ _, _ -> PagingSource.LoadResult.Page.COUNT_UNDEFINED }
,
prependCall
:
suspend
(
response
:
ApolloResponse
<
Data
>
,
loadSize
:
Int
)
->
ApolloCall
<
Data
>
?
?
=
null
,
itemsBefore
:
suspend
(
response
:
ApolloResponse
<
Data
>
,
loadedItemsCount
:
Int
)
->
Int
=
{ _, _ -> PagingSource.LoadResult.Page.COUNT_UNDEFINED }
,
getItems
:
suspend
(
response
:
ApolloResponse
<
Data
>
)
->
Result
<
List
<
Value
>
>
)
:
Pager
<
ApolloCall
<
Data
>
,
Value
>