All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.makeevrserg.mobilex.paging.state.PagingState.kt Maven / Gradle / Ivy

There is a newer version: 2.7.3
Show newest version
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