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

LoadType

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

enum LoadType


Type of load a PagingData can trigger a PagingSource to perform.

LoadState of any LoadType may be observed for UI purposes by registering a listener via androidx.paging.PagingDataAdapter.addLoadStateListener or androidx.paging.AsyncPagingDataDiffer.addLoadStateListener.

See also
LoadState

Summary

Enum Values

APPEND

Load at the end of a PagingData.

PREPEND

Load at the start of a PagingData.

REFRESH

PagingData content being refreshed, which can be a result of PagingSource invalidation, refresh that may contain content updates, or the initial load.

Public properties

String
Int

Enum Values

APPEND

val LoadType.APPENDLoadType

Load at the end of a PagingData.

PREPEND

val LoadType.PREPENDLoadType

Load at the start of a PagingData.

REFRESH

val LoadType.REFRESHLoadType

PagingData content being refreshed, which can be a result of PagingSource invalidation, refresh that may contain content updates, or the initial load.

Public properties

name

val nameString

ordinal

val ordinalInt