Package-level declarations

Types

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

Link copied to clipboard
const val VERSION: String

Functions

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>
Link copied to clipboard
@ApolloExperimental
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>