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

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

The newest version!
package com.makeevrserg.mobilex.paging.state

data class IntPagingState(
    override var page: Int,
    override var isLastPage: Boolean = false,
    override val isLoading: Boolean = false
) : PagingState {
    override fun getNextPage(): Int {
        return page + 1
    }

    override fun copyPagingState(
        page: Int,
        isLastPage: Boolean,
        isLoading: Boolean
    ): PagingState {
        return this.copy(
            page = page,
            isLastPage = isLastPage,
            isLoading = isLoading
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy