LoadStates



Collection of pagination LoadStates - refresh, prepend, and append.

Summary

Public constructors

LoadStates(refresh: LoadState, prepend: LoadState, append: LoadState)
Cmn

Public properties

LoadState

LoadState corresponding to LoadType.APPEND loads.

Cmn
Boolean

Returns true if either one of refresh, append, or prepend is in Error state.

Cmn
Boolean

Returns true if all three LoadState refresh, append, and prepend are in NotLoading state.

Cmn
LoadState

LoadState corresponding to LoadType.PREPEND loads.

Cmn
LoadState

LoadState corresponding to LoadType.REFRESH loads.

Cmn

Public constructors

LoadStates

LoadStates(refresh: LoadState, prepend: LoadState, append: LoadState)

Public properties

append

val appendLoadState

LoadState corresponding to LoadType.APPEND loads.

hasError

val hasErrorBoolean

Returns true if either one of refresh, append, or prepend is in Error state.

isIdle

val isIdleBoolean

Returns true if all three LoadState refresh, append, and prepend are in NotLoading state.

prepend

val prependLoadState

LoadState corresponding to LoadType.PREPEND loads.

refresh

val refreshLoadState

LoadState corresponding to LoadType.REFRESH loads.