Google 致力于为黑人社区推动种族平等。查看具体举措

MutableLoadStateCollection

class MutableLoadStateCollection
kotlin.Any
   ↳ androidx.paging.MutableLoadStateCollection

TODO: Remove this once PageEvent.LoadStateUpdate contained CombinedLoadStates.

Summary

Public constructors

TODO: Remove this once PageEvent.LoadStateUpdate contained CombinedLoadStates.

Public methods
LoadState?
get(type: LoadType, remote: Boolean)

Unit
set(combinedLoadStates: CombinedLoadStates)

Boolean
set(type: LoadType, remote: Boolean, state: LoadState)

CombinedLoadStates

Public constructors

<init>

MutableLoadStateCollection()

TODO: Remove this once PageEvent.LoadStateUpdate contained CombinedLoadStates.

Public methods

get

fun get(
    type: LoadType,
    remote: Boolean
): LoadState?

set

fun set(combinedLoadStates: CombinedLoadStates): Unit

set

fun set(
    type: LoadType,
    remote: Boolean,
    state: LoadState
): Boolean

snapshot

fun snapshot(): CombinedLoadStates