# RxPagedListKt

Added in 3.1.0

*** ** * ** ***


```
public final class RxPagedListKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull Value>>` | `<Key extends https://developer.android.com/reference/java/lang/Object.html, Value extends https://developer.android.com/reference/java/lang/Object.html> [toFlowable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(androidx.paging.DataSource.Factory).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/DataSource.Factory<@https://developer.android.com/reference/androidx/annotation/NonNull Key, @https://developer.android.com/reference/androidx/annotation/NonNull Value> receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList.Config config, Key initialLoadKey, https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler, @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html backpressureStrategy )` **This method is deprecated.** PagedList is deprecated and has been replaced by PagingData |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull Value>>` | `<Key extends https://developer.android.com/reference/java/lang/Object.html, Value extends https://developer.android.com/reference/java/lang/Object.html> [toFlowable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(androidx.paging.DataSource.Factory).toFlowable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/DataSource.Factory<@https://developer.android.com/reference/androidx/annotation/NonNull Key, @https://developer.android.com/reference/androidx/annotation/NonNull Value> receiver, int pageSize, Key initialLoadKey, https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler, @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html backpressureStrategy )` **This method is deprecated.** PagedList is deprecated and has been replaced by PagingData |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull Value>>` | `<Key extends https://developer.android.com/reference/java/lang/Object.html, Value extends https://developer.android.com/reference/java/lang/Object.html> [toFlowable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(kotlin.Function0).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy))( @https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagingSource<@https://developer.android.com/reference/androidx/annotation/NonNull Key, @https://developer.android.com/reference/androidx/annotation/NonNull Value>> receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList.Config config, Key initialLoadKey, https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler, @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html backpressureStrategy )` **This method is deprecated.** PagedList is deprecated and has been replaced by PagingData |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull Value>>` | `<Key extends https://developer.android.com/reference/java/lang/Object.html, Value extends https://developer.android.com/reference/java/lang/Object.html> [toFlowable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(kotlin.Function0).toFlowable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy))( @https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagingSource<@https://developer.android.com/reference/androidx/annotation/NonNull Key, @https://developer.android.com/reference/androidx/annotation/NonNull Value>> receiver, int pageSize, Key initialLoadKey, https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler, @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html backpressureStrategy )` **This method is deprecated.** PagedList is deprecated and has been replaced by PagingData |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull Value>>` | `<Key extends https://developer.android.com/reference/java/lang/Object.html, Value extends https://developer.android.com/reference/java/lang/Object.html> [toObservable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(androidx.paging.DataSource.Factory).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/DataSource.Factory<@https://developer.android.com/reference/androidx/annotation/NonNull Key, @https://developer.android.com/reference/androidx/annotation/NonNull Value> receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList.Config config, Key initialLoadKey, https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler )` **This method is deprecated.** PagedList is deprecated and has been replaced by PagingData |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull Value>>` | `<Key extends https://developer.android.com/reference/java/lang/Object.html, Value extends https://developer.android.com/reference/java/lang/Object.html> [toObservable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(androidx.paging.DataSource.Factory).toObservable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/DataSource.Factory<@https://developer.android.com/reference/androidx/annotation/NonNull Key, @https://developer.android.com/reference/androidx/annotation/NonNull Value> receiver, int pageSize, Key initialLoadKey, https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler )` **This method is deprecated.** PagedList is deprecated and has been replaced by PagingData |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull Value>>` | `<Key extends https://developer.android.com/reference/java/lang/Object.html, Value extends https://developer.android.com/reference/java/lang/Object.html> [toObservable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(kotlin.Function0).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler))( @https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagingSource<@https://developer.android.com/reference/androidx/annotation/NonNull Key, @https://developer.android.com/reference/androidx/annotation/NonNull Value>> receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList.Config config, Key initialLoadKey, https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler )` **This method is deprecated.** PagedList is deprecated and has been replaced by PagingData |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull Value>>` | `<Key extends https://developer.android.com/reference/java/lang/Object.html, Value extends https://developer.android.com/reference/java/lang/Object.html> [toObservable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(kotlin.Function0).toObservable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler))( @https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagingSource<@https://developer.android.com/reference/androidx/annotation/NonNull Key, @https://developer.android.com/reference/androidx/annotation/NonNull Value>> receiver, int pageSize, Key initialLoadKey, https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler, http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler )` **This method is deprecated.** PagedList is deprecated and has been replaced by PagingData |

## Public methods

### toFlowable

Artifact: [androidx.paging:paging-rxjava3](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/rxjava3/RxPagedList.kt+function:toFlowable) Added in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0) Deprecated in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0)

```
public static final @NonNull Flowable<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> [toFlowable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(androidx.paging.DataSource.Factory).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy))(
    @NonNull DataSource.Factory<@NonNull Key, @NonNull Value> receiver,
    @NonNull PagedList.Config config,
    Key initialLoadKey,
    PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    Scheduler fetchScheduler,
    Scheduler notifyScheduler,
    @NonNull BackpressureStrategy backpressureStrategy
)
```

> [!CAUTION]
> **This method is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData, use this instead:
>
> ```java
> Pager(
>             PagingConfig(
>                 config.pageSize,
>                 config.prefetchDistance,
>                 config.enablePlaceholders,
>                 config.initialLoadSizeHint,
>                 config.maxSize
>             ),
>             initialLoadKey,
>             this.asPagingSourceFactory(fetchScheduler?.asCoroutineDispatcher() ?: Dispatchers.IO)
>         ).flowable
> ```

Constructs a `Flowable<PagedList>`, from this `https://developer.android.com/reference/androidx/paging/DataSource.Factory`, convenience for `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder`.

The returned `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html` will already be subscribed on the `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)`, and will perform all loading on that scheduler. It will already be observed on `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)`, and will dispatch new `https://developer.android.com/reference/androidx/paging/PagedList`s, as well as their updates to that scheduler.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList.Config config` | Paging configuration. |
| `Key initialLoadKey` | Initial load key passed to the first `https://developer.android.com/reference/androidx/paging/PagedList` / `https://developer.android.com/reference/androidx/paging/DataSource`. |
| `https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback` | The boundary callback for listening to `https://developer.android.com/reference/androidx/paging/PagedList` load state. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` used to fetch from `https://developer.android.com/reference/androidx/paging/DataSource`s, generally a background thread pool for e.g. I/O or network loading. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` that receives `https://developer.android.com/reference/androidx/paging/PagedList` updates, and where `https://developer.android.com/reference/androidx/paging/PagedList.Callback` calls are dispatched. Generally, this is the UI / main thread. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html backpressureStrategy` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html` for the `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html` to use. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder` |   |
| `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)` |   |

### toFlowable

Artifact: [androidx.paging:paging-rxjava3](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/rxjava3/RxPagedList.kt+function:toFlowable) Added in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0) Deprecated in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0)

```
public static final @NonNull Flowable<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> [toFlowable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(androidx.paging.DataSource.Factory).toFlowable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy))(
    @NonNull DataSource.Factory<@NonNull Key, @NonNull Value> receiver,
    int pageSize,
    Key initialLoadKey,
    PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    Scheduler fetchScheduler,
    Scheduler notifyScheduler,
    @NonNull BackpressureStrategy backpressureStrategy
)
```

> [!CAUTION]
> **This method is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData, use this instead:
>
> ```java
> Pager(
>             PagingConfig(pageSize),
>             initialLoadKey,
>             this.asPagingSourceFactory(fetchScheduler?.asCoroutineDispatcher() ?: Dispatchers.IO)
>         ).flowable
> ```

Constructs a `Flowable<PagedList>`, from this `https://developer.android.com/reference/androidx/paging/DataSource.Factory`, convenience for `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder`.

The returned `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html` will already be subscribed on the `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toFlowable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)`, and will perform all loading on that scheduler. It will already be observed on `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toFlowable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)`, and will dispatch new `https://developer.android.com/reference/androidx/paging/PagedList`s, as well as their updates to that scheduler.

| Parameters |
|---|---|
| `int pageSize` | Page size. |
| `Key initialLoadKey` | Initial load key passed to the first `https://developer.android.com/reference/androidx/paging/PagedList` / `https://developer.android.com/reference/androidx/paging/DataSource`. |
| `https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback` | The boundary callback for listening to `https://developer.android.com/reference/androidx/paging/PagedList` load state. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` used to fetch from `https://developer.android.com/reference/androidx/paging/DataSource`s, generally a background thread pool for e.g. I/O or network loading. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` that receives `https://developer.android.com/reference/androidx/paging/PagedList` updates, and where `https://developer.android.com/reference/androidx/paging/PagedList.Callback` calls are dispatched. Generally, this is the UI / main thread. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html backpressureStrategy` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html` for the `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html` to use. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder` |   |
| `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)` |   |

### toFlowable

Artifact: [androidx.paging:paging-rxjava3](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/rxjava3/RxPagedList.kt+function:toFlowable) Added in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0) Deprecated in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0)

```
public static final @NonNull Flowable<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> [toFlowable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(kotlin.Function0).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy))(
    @NonNull Function0<@NonNull PagingSource<@NonNull Key, @NonNull Value>> receiver,
    @NonNull PagedList.Config config,
    Key initialLoadKey,
    PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    Scheduler fetchScheduler,
    Scheduler notifyScheduler,
    @NonNull BackpressureStrategy backpressureStrategy
)
```

> [!CAUTION]
> **This method is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData, use this instead:
>
> ```java
> Pager(
>             PagingConfig(
>                 config.pageSize,
>                 config.prefetchDistance,
>                 config.enablePlaceholders,
>                 config.initialLoadSizeHint,
>                 config.maxSize
>             ),
>             initialLoadKey,
>             this
>         ).flowable
> ```

Constructs a `Flowable<PagedList>`, from this `https://developer.android.com/reference/androidx/paging/PagingSource` factory, convenience for `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder`.

The returned `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html` will already be subscribed on the `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(kotlin.Function0).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)`, and will perform all loading on that scheduler. It will already be observed on `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(kotlin.Function0).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)`, and will dispatch new `https://developer.android.com/reference/androidx/paging/PagedList`s, as well as their updates to that scheduler.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList.Config config` | Paging configuration. |
| `Key initialLoadKey` | Initial load key passed to the first `https://developer.android.com/reference/androidx/paging/PagedList` / `https://developer.android.com/reference/androidx/paging/PagingSource`. |
| `https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback` | The boundary callback for listening to `https://developer.android.com/reference/androidx/paging/PagedList` load state. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` used to fetch from `https://developer.android.com/reference/androidx/paging/PagingSource`s, generally a background thread pool for e.g. I/O or network loading. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` that receives `https://developer.android.com/reference/androidx/paging/PagedList` updates, and where `https://developer.android.com/reference/androidx/paging/PagedList.Callback` calls are dispatched. Generally, this is the UI / main thread. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html backpressureStrategy` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html` for the `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html` to use. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder` |   |
| `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)` |   |

### toFlowable

Artifact: [androidx.paging:paging-rxjava3](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/rxjava3/RxPagedList.kt+function:toFlowable) Added in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0) Deprecated in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0)

```
public static final @NonNull Flowable<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> [toFlowable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(kotlin.Function0).toFlowable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy))(
    @NonNull Function0<@NonNull PagingSource<@NonNull Key, @NonNull Value>> receiver,
    int pageSize,
    Key initialLoadKey,
    PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    Scheduler fetchScheduler,
    Scheduler notifyScheduler,
    @NonNull BackpressureStrategy backpressureStrategy
)
```

> [!CAUTION]
> **This method is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData, use this instead:
>
> ```java
> Pager(
>             PagingConfig(pageSize),
>             initialLoadKey,
>             this
>         ).flowable
> ```

Constructs a `Flowable<PagedList>`, from this `https://developer.android.com/reference/androidx/paging/PagingSource` factory, convenience for `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder`.

The returned `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html` will already be subscribed on the `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(kotlin.Function0).toFlowable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)`, and will perform all loading on that scheduler. It will already be observed on `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(kotlin.Function0).toFlowable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)`, and will dispatch new `https://developer.android.com/reference/androidx/paging/PagedList`s, as well as their updates to that scheduler.

| Parameters |
|---|---|
| `int pageSize` | Page size. |
| `Key initialLoadKey` | Initial load key passed to the first `https://developer.android.com/reference/androidx/paging/PagedList` / `https://developer.android.com/reference/androidx/paging/PagingSource`. |
| `https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback` | The boundary callback for listening to `https://developer.android.com/reference/androidx/paging/PagedList` load state. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` used to fetch from `https://developer.android.com/reference/androidx/paging/PagingSource`s, generally a background thread pool for e.g. I/O or network loading. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` that receives `https://developer.android.com/reference/androidx/paging/PagedList` updates, and where `https://developer.android.com/reference/androidx/paging/PagedList.Callback` calls are dispatched. Generally, this is the UI / main thread. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html backpressureStrategy` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/BackpressureStrategy.html` for the `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html` to use. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder` |   |
| `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)` |   |

### toObservable

Artifact: [androidx.paging:paging-rxjava3](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/rxjava3/RxPagedList.kt+function:toObservable) Added in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0) Deprecated in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0)

```
public static final @NonNull Observable<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> [toObservable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(androidx.paging.DataSource.Factory).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler))(
    @NonNull DataSource.Factory<@NonNull Key, @NonNull Value> receiver,
    @NonNull PagedList.Config config,
    Key initialLoadKey,
    PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    Scheduler fetchScheduler,
    Scheduler notifyScheduler
)
```

> [!CAUTION]
> **This method is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData, use this instead:
>
> ```java
> Pager(
>             PagingConfig(
>                 config.pageSize,
>                 config.prefetchDistance,
>                 config.enablePlaceholders,
>                 config.initialLoadSizeHint,
>                 config.maxSize
>             ),
>             initialLoadKey,
>             this.asPagingSourceFactory(fetchScheduler?.asCoroutineDispatcher() ?: Dispatchers.IO)
>         ).observable
> ```

Constructs a `Observable<PagedList>` from this `https://developer.android.com/reference/androidx/paging/DataSource.Factory`, convenience for `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder`.

The returned `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html` will already be subscribed on the `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)`, and will perform all loading on that scheduler. It will already be observed on `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)`, and will dispatch new `https://developer.android.com/reference/androidx/paging/PagedList`s, as well as their updates to that scheduler.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList.Config config` | Paging configuration. |
| `Key initialLoadKey` | Initial load key passed to the first `https://developer.android.com/reference/androidx/paging/PagedList` / `https://developer.android.com/reference/androidx/paging/DataSource`. |
| `https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback` | The boundary callback for listening to PagedList load state. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` used to fetch from `https://developer.android.com/reference/androidx/paging/DataSource`s, generally a background thread pool for e.g. I/O or network loading. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` that receives `https://developer.android.com/reference/androidx/paging/PagedList` updates, and where `https://developer.android.com/reference/androidx/paging/PagedList.Callback` calls are dispatched. Generally, this is the UI / main thread. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder` |   |
| `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)` |   |

### toObservable

Artifact: [androidx.paging:paging-rxjava3](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/rxjava3/RxPagedList.kt+function:toObservable) Added in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0) Deprecated in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0)

```
public static final @NonNull Observable<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> [toObservable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(androidx.paging.DataSource.Factory).toObservable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler))(
    @NonNull DataSource.Factory<@NonNull Key, @NonNull Value> receiver,
    int pageSize,
    Key initialLoadKey,
    PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    Scheduler fetchScheduler,
    Scheduler notifyScheduler
)
```

> [!CAUTION]
> **This method is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData, use this instead:
>
> ```java
> Pager(
>             PagingConfig(pageSize),
>             initialLoadKey,
>             this.asPagingSourceFactory(fetchScheduler?.asCoroutineDispatcher() ?: Dispatchers.IO)
>         ).observable
> ```

Constructs a `Observable<PagedList>` from this `https://developer.android.com/reference/androidx/paging/DataSource.Factory`, convenience for `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder`.

The returned `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html` will already be subscribed on the `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toObservable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)`, and will perform all loading on that scheduler. It will already be observed on `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toObservable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)`, and will dispatch new `https://developer.android.com/reference/androidx/paging/PagedList`s, as well as their updates to that scheduler.

| Parameters |
|---|---|
| `int pageSize` | Size of pages to load. |
| `Key initialLoadKey` | Initial load key passed to the first `https://developer.android.com/reference/androidx/paging/PagedList` / `https://developer.android.com/reference/androidx/paging/DataSource`. |
| `https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback` | The boundary callback for listening to `https://developer.android.com/reference/androidx/paging/PagedList` load state. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` used to fetch from `https://developer.android.com/reference/androidx/paging/DataSource`s, generally a background thread pool for e.g. I/O or network loading. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` that receives `https://developer.android.com/reference/androidx/paging/PagedList` updates, and where `https://developer.android.com/reference/androidx/paging/PagedList.Callback` calls are dispatched. Generally, this is the UI / main thread. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder` |   |
| `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)` |   |

### toObservable

Artifact: [androidx.paging:paging-rxjava3](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/rxjava3/RxPagedList.kt+function:toObservable) Added in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0) Deprecated in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0)

```
public static final @NonNull Observable<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> [toObservable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(kotlin.Function0).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler))(
    @NonNull Function0<@NonNull PagingSource<@NonNull Key, @NonNull Value>> receiver,
    @NonNull PagedList.Config config,
    Key initialLoadKey,
    PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    Scheduler fetchScheduler,
    Scheduler notifyScheduler
)
```

> [!CAUTION]
> **This method is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData, use this instead:
>
> ```java
> Pager(
>             PagingConfig(
>                 config.pageSize,
>                 config.prefetchDistance,
>                 config.enablePlaceholders,
>                 config.initialLoadSizeHint,
>                 config.maxSize
>             ),
>             initialLoadKey,
>             this.asPagingSourceFactory(fetchScheduler?.asCoroutineDispatcher() ?: Dispatchers.IO)
>         ).observable
> ```

Constructs a `Observable<PagedList>` from this `https://developer.android.com/reference/androidx/paging/PagingSource` factory, convenience for `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder`.

The returned `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html` will already be subscribed on the `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(kotlin.Function0).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)`, and will perform all loading on that scheduler. It will already be observed on `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(kotlin.Function0).toObservable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)`, and will dispatch new `https://developer.android.com/reference/androidx/paging/PagedList`s, as well as their updates to that scheduler.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/paging/PagedList.Config config` | Paging configuration. |
| `Key initialLoadKey` | Initial load key passed to the first `https://developer.android.com/reference/androidx/paging/PagedList` / `https://developer.android.com/reference/androidx/paging/PagingSource`. |
| `https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback` | The boundary callback for listening to PagedList load state. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` used to fetch from `https://developer.android.com/reference/androidx/paging/PagingSource`s, generally a background thread pool for e.g. I/O or network loading. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` that receives `https://developer.android.com/reference/androidx/paging/PagedList` updates, and where `https://developer.android.com/reference/androidx/paging/PagedList.Callback` calls are dispatched. Generally, this is the UI / main thread. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder` |   |
| `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)` |   |

### toObservable

Artifact: [androidx.paging:paging-rxjava3](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/rxjava3/RxPagedList.kt+function:toObservable) Added in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0) Deprecated in [3.1.0](https://developer.android.com/jetpack/androidx/releases/paging#3.1.0)

```
public static final @NonNull Observable<@NonNull PagedList<@NonNull Value>> <Key extends Object, Value extends Object> [toObservable](https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListKt#(kotlin.Function0).toObservable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler))(
    @NonNull Function0<@NonNull PagingSource<@NonNull Key, @NonNull Value>> receiver,
    int pageSize,
    Key initialLoadKey,
    PagedList.BoundaryCallback<@NonNull Value> boundaryCallback,
    Scheduler fetchScheduler,
    Scheduler notifyScheduler
)
```

> [!CAUTION]
> **This method is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData, use this instead:
>
> ```java
> Pager(
>             PagingConfig(pageSize),
>             initialLoadKey,
>             this
>         ).observable
> ```

Constructs a `Observable<PagedList>` from this `https://developer.android.com/reference/androidx/paging/PagingSource` factory, convenience for `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder`.

The returned `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html` will already be subscribed on the `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(kotlin.Function0).toObservable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)`, and will perform all loading on that scheduler. It will already be observed on `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(kotlin.Function0).toObservable(kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler)`, and will dispatch new `https://developer.android.com/reference/androidx/paging/PagedList`s, as well as their updates to that scheduler.

| Parameters |
|---|---|
| `int pageSize` | Size of pages to load. |
| `Key initialLoadKey` | Initial load key passed to the first `https://developer.android.com/reference/androidx/paging/PagedList` / `https://developer.android.com/reference/androidx/paging/PagingSource`. |
| `https://developer.android.com/reference/androidx/paging/PagedList.BoundaryCallback<@https://developer.android.com/reference/androidx/annotation/NonNull Value> boundaryCallback` | The boundary callback for listening to `https://developer.android.com/reference/androidx/paging/PagedList` load state. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html fetchScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` used to fetch from `https://developer.android.com/reference/androidx/paging/PagingSource`s, generally a background thread pool for e.g. I/O or network loading. |
| `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html notifyScheduler` | `http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Scheduler.html` that receives `https://developer.android.com/reference/androidx/paging/PagedList` updates, and where `https://developer.android.com/reference/androidx/paging/PagedList.Callback` calls are dispatched. Generally, this is the UI / main thread. |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/rxjava3/RxPagedListBuilder` |   |
| `https://developer.android.com/reference/androidx/paging/rxjava3/package-summary#(androidx.paging.DataSource.Factory).toFlowable(androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.Scheduler,io.reactivex.rxjava3.core.BackpressureStrategy)` |   |