# RemoteMediator.MediatorResult

Artifact: [androidx.paging:paging-common](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/RemoteMediator.kt+class:androidx.paging.RemoteMediator.MediatorResult) Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

*** ** * ** ***

Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  sealed class RemoteMediator.MediatorResult
  ```
Known direct subclasses [RemoteMediator.MediatorResult.Error](https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Error), [RemoteMediator.MediatorResult.Success](https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Success)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Error` | Recoverable error that can be retried, sets the `https://developer.android.com/reference/kotlin/androidx/paging/LoadState` to `https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Error`. |
| `https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Success` | Success signaling that `https://developer.android.com/reference/kotlin/androidx/paging/LoadState` should be set to `https://developer.android.com/reference/kotlin/androidx/paging/LoadState.NotLoading` if `https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Success#endOfPaginationReached()` is `true`, otherwise `https://developer.android.com/reference/kotlin/androidx/paging/LoadState` is kept at `https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Loading` to await invalidation. |

*** ** * ** ***

Return type of `https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator#load(androidx.paging.LoadType,androidx.paging.PagingState)`, which determines `https://developer.android.com/reference/kotlin/androidx/paging/LoadState`.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Error : https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult` Recoverable error that can be retried, sets the `https://developer.android.com/reference/kotlin/androidx/paging/LoadState` to `https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Error`. |
| `class https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Success : https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult` Success signaling that `https://developer.android.com/reference/kotlin/androidx/paging/LoadState` should be set to `https://developer.android.com/reference/kotlin/androidx/paging/LoadState.NotLoading` if `https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Success#endOfPaginationReached()` is `true`, otherwise `https://developer.android.com/reference/kotlin/androidx/paging/LoadState` is kept at `https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Loading` to await invalidation. |

| ### Protected constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult#MediatorResult()()` | Cmn |

## Protected constructors

### MediatorResult

Cmn

```
protected MediatorResult()
```