PagingSource.LoadParams.Refresh

public final class PagingSource.LoadParams.Refresh<Key extends Object> extends PagingSource.LoadParams


Params for an initial load request on a PagingSource from PagingSource.load or a refresh triggered by invalidate.

Summary

Public fields

@Nullable Key

Key for the page to be loaded.

Public constructors

<Key extends Object> Refresh(
    @Nullable Key key,
    int loadSize,
    boolean placeholdersEnabled
)

Public fields

key

@Nullable
public @Nullable Key key

Key for the page to be loaded.

key can be null only if this LoadParams is Refresh, and either no initialKey is provided to the Pager or PagingSource.getRefreshKey from the previous PagingSource returns null.

The value of key is dependent on the type of LoadParams:

Public constructors

Refresh

public final <Key extends Object> Refresh(
    @Nullable Key key,
    int loadSize,
    boolean placeholdersEnabled
)