LivePagedListKt

public final class LivePagedListKt


Summary

Public methods

static final @NonNull LiveData<@NonNull PagedList<@NonNull Value>>
<Key extends Object, Value extends Object> LivePagedListKt.toLiveData(
    @NonNull DataSource.Factory<@NonNull Key, @NonNull Value> receiver,
    @NonNull PagedList.Config config,
    @Nullable Key initialLoadKey,
    @Nullable PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    @NonNull Executor fetchExecutor
)

This method is deprecated. PagedList is deprecated and has been replaced by PagingData

static final @NonNull LiveData<@NonNull PagedList<@NonNull Value>>
<Key extends Object, Value extends Object> LivePagedListKt.toLiveData(
    @NonNull DataSource.Factory<@NonNull Key, @NonNull Value> receiver,
    int pageSize,
    @Nullable Key initialLoadKey,
    @Nullable PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    @NonNull Executor fetchExecutor
)

This method is deprecated. PagedList is deprecated and has been replaced by PagingData

static final @NonNull LiveData<@NonNull PagedList<@NonNull Value>>
<Key extends Object, Value extends Object> LivePagedListKt.toLiveData(
    @NonNull Function0<@NonNull PagingSource<@NonNull Key, @NonNull Value>> receiver,
    @NonNull PagedList.Config config,
    @Nullable Key initialLoadKey,
    @Nullable PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    @NonNull CoroutineScope coroutineScope,
    @NonNull CoroutineDispatcher fetchDispatcher
)

This method is deprecated. PagedList is deprecated and has been replaced by PagingData

static final @NonNull LiveData<@NonNull PagedList<@NonNull Value>>
<Key extends Object, Value extends Object> LivePagedListKt.toLiveData(
    @NonNull Function0<@NonNull PagingSource<@NonNull Key, @NonNull Value>> receiver,
    int pageSize,
    @Nullable Key initialLoadKey,
    @Nullable PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    @NonNull CoroutineScope coroutineScope,
    @NonNull CoroutineDispatcher fetchDispatcher
)

This method is deprecated. PagedList is deprecated and has been replaced by PagingData

Public methods

LivePagedListKt.toLiveData

@NonNull
public static final LiveData<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> LivePagedListKt.toLiveData(
    @NonNull DataSource.Factory<@NonNull Key, @NonNull Value> receiver,
    @NonNull PagedList.Config config,
    @Nullable Key initialLoadKey,
    @Nullable PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    @NonNull Executor fetchExecutor
)

Constructs a LiveData<PagedList>, from this DataSource.Factory, convenience for LivePagedListBuilder.

No work (such as loading) is done immediately, the creation of the first PagedList is deferred until the LiveData is observed.

Parameters
@NonNull PagedList.Config config

Paging configuration.

@Nullable Key initialLoadKey

Initial load key passed to the first PagedList / PagingSource.

@Nullable PagedList.BoundaryCallback<@NonNull Value> boundaryCallback

The boundary callback for listening to PagedList load state.

@NonNull Executor fetchExecutor

Executor for fetching data from PagingSources.

LivePagedListKt.toLiveData

@NonNull
public static final LiveData<@NonNull