RemoteMediator.MediatorResult


public sealed class RemoteMediator.MediatorResult

Known direct subclasses
RemoteMediator.MediatorResult.Error

Recoverable error that can be retried, sets the LoadState to LoadState.Error.

RemoteMediator.MediatorResult.Success

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


Return type of load, which determines LoadState.

Summary

Nested types

Recoverable error that can be retried, sets the LoadState to LoadState.Error.

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

Protected constructors

Protected constructors

MediatorResult

protected MediatorResult()