{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

LoadStates

{% setvar page_path %}androidx/paging/LoadStates.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_kotlin_switcher2.md" %}

data class LoadStates


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

Summary

Public properties

LoadState

LoadState corresponding to LoadType.APPEND loads.

LoadState

LoadState corresponding to LoadType.PREPEND loads.

LoadState

LoadState corresponding to LoadType.REFRESH loads.

Public constructors

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

Public functions

inline @<ERROR CLASS> Unit

Public properties

append

val appendLoadState

LoadState corresponding to LoadType.APPEND loads.

prepend

val prependLoadState

LoadState corresponding to LoadType.PREPEND loads.

refresh

val refreshLoadState

LoadState corresponding to LoadType.REFRESH loads.

Public constructors

LoadStates

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

Public functions

forEach

@<ERROR CLASS>
inline fun forEach(op: (LoadTypeLoadState) -> Unit): @<ERROR CLASS> Unit