Package-level declarations

Types

Link copied to clipboard

A descriptor for a paginated RPC endpoint, tying together:

Link copied to clipboard

Used to build each "list" request in a paginated flow, injecting the current cursor between pages.

Functions

Link copied to clipboard
fun <T> paginate(items: List<T>, cursor: String?, pageSize: Int): Pair<List<T>, String?>

Returns a sub-list of items plus a nextCursor if there's another page.