Paginator

interface Paginator

Interface to iterate over the results queried from EditionProvider. Call next as needed until the Paginator is exhausted (Page.hasNext == false). It provides a Result containing a Page on success. NOTE: Calling Editions.updateFeed will render any Paginator object invalid. To keep getting Editions you need to query them again using EditionProvider.editions after an update.

Functions

Link copied to clipboard
abstract fun next(callback: (Result<Page>) -> Unit)
Link copied to clipboard
suspend fun Paginator.nextAsync(): Page

Coroutine version of Paginator.next.