toggle menu
apollo-kotlin-compose-support
0.0.3-SNAPSHOT
androidJvm
switch theme
search in API
compose-paging-support
/
com.apollographql.compose.paging
Package-level
declarations
Types
Functions
Properties
Types
Apollo
Paging
Source
Link copied to clipboard
@
ApolloExperimental
class
ApolloPagingSource
<
Data
:
Operation.Data
,
Value
:
Any
>
(
appendCall
:
suspend
(
response
:
ApolloResponse
<
Data
>
?
,
loadSize
:
Int
)
->
ApolloCall
<
Data
>
?
,
itemsAfter
:
suspend
(
response
:
ApolloResponse
<
Data
>
,
loadedItemsCount
:
Int
)
->
Int
=
{ _, _ -> LoadResult.Page.COUNT_UNDEFINED }
,
prependCall
:
suspend
(
response
:
ApolloResponse
<
Data
>
,
loadSize
:
Int
)
->
ApolloCall
<
Data
>
?
?
=
null
,
itemsBefore
:
suspend
(
response
:
ApolloResponse
<
Data
>
,
loadedItemsCount
:
Int
)
->
Int
=
{ _, _ -> LoadResult.Page.COUNT_UNDEFINED }
,
getItems
:
suspend
(
response
:
ApolloResponse
<
Data
>
)
->
Result
<
List
<
Value
>
>
)
:
PagingSource
<
ApolloCall
<
Data
>
,
Value
>
Properties
VERSION
Link copied to clipboard
const
val
VERSION
:
String
Functions
Pager
Link copied to clipboard
@
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
>
remember
And
Collect
Pager
Link copied to clipboard
@
ApolloExperimental
@
Composable
fun
<
Data
:
Operation.Data
,
Value
:
Any
>
rememberAndCollectPager
(
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
>
>
)
:
LazyPagingItems
<
Value
>