RemoteMediator.MediatorResult.Success

public final class RemoteMediator.MediatorResult.Success extends RemoteMediator.MediatorResult


Success signaling that LoadState should be set to LoadState.NotLoading if endOfPaginationReached is true, otherwise LoadState is kept at LoadState.Loading to await invalidation.

NOTE: It is the responsibility of load to update the backing dataset and trigger PagingSource.invalidate to allow androidx.paging.PagingDataAdapter to pick up new items found by load.

Summary

Public constructors

Success(boolean endOfPaginationReached)

Public methods

final boolean

Public constructors

Success

Added in 3.0.0
public Success(boolean endOfPaginationReached)

Public methods

endOfPaginationReached

Added in 3.0.0
public final boolean endOfPaginationReached()