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 fields

final boolean

Public constructors

Success(boolean endOfPaginationReached)

Public fields

endOfPaginationReached

@NonNull
public final boolean endOfPaginationReached

Public constructors

Success

@NonNull
public final Success(boolean endOfPaginationReached)