commonMain.com.makeevrserg.mobilex.paging.state.PagingState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paging-jvm Show documentation
Show all versions of paging-jvm Show documentation
KMM library with frequently used code
package com.makeevrserg.mobilex.paging.state
/**
* Core paging state
* [T] is the type of page - can be int; string whatever
* @see IntPagingState
* @see DefaultPagingState
*/
interface PagingState {
val page: T
val isLastPage: Boolean
val isLoading: Boolean
fun getNextPage(): T
fun copyPagingState(
page: T = this.page,
isLastPage: Boolean = this.isLastPage,
isLoading: Boolean = this.isLoading
): PagingState
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy