LoadType

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 fields

final @NonNull String
final int

Enum Values

APPEND

@NonNull
@NonNull LoadType LoadType.APPEND

Load at the end of a PagingData.

PREPEND

@NonNull
@NonNull LoadType LoadType.PREPEND

Load at the start of a PagingData.

REFRESH

@NonNull
@NonNull LoadType LoadType.REFRESH

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

Public fields

name

@NonNull
public final @NonNull String name

ordinal

@NonNull
public final int ordinal