blob: d4f3ea247ff22166adee9d5a804202a729150a49 [file] [log] [blame]
<html devsite="true">
<head>
<title>androidx.paging</title>
{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<h1>androidx.paging</h1>
{% setvar page_path %}androidx/paging/package-summary.html{% endsetvar %}
{% setvar can_switch %}1{% endsetvar %}
{% include "reference/_kotlin_switcher2.md" %}
<h2>Interfaces</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/AsyncPagedListDiffer.PagedListListener.html">AsyncPagedListDiffer.PagedListListener</a></code></td>
<td width="100%">
<p><strong>This interface is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/DataSource.InvalidatedCallback.html">DataSource.InvalidatedCallback</a></code></td>
<td width="100%">
<p>Invalidation callback for <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/DifferCallback.html">DifferCallback</a></code></td>
<td width="100%">
<p>Callback for the presenter/adapter to listen to the state of pagination data.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/NullPaddedList.html">NullPaddedList</a></code></td>
<td width="100%">
<p>Interface to partially-loaded, paged data (generally an immutable snapshot).</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>Classes</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/AsyncPagedListDiffer.html">AsyncPagedListDiffer</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> AsyncPagedListDiffer is deprecated and has been replaced by AsyncPagingDataDiffer</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/AsyncPagingDataDiffer.html">AsyncPagingDataDiffer</a></code></td>
<td width="100%">
<p>Helper class for mapping a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> into a androidx.recyclerview.widget.RecyclerView.Adapter.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/CombinedLoadStates.html">CombinedLoadStates</a></code></td>
<td width="100%">
<p>Collection of pagination <code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code>s for both a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>, and <code><a href="/reference/kotlin/androidx/paging/RemoteMediator.html">RemoteMediator</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ContiguousPagedList.html">ContiguousPagedList</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code></td>
<td width="100%">
<p>Base class for loading pages of snapshot data into a <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a></code></td>
<td width="100%">
<p>Factory for DataSources.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/InitialPagedList.html">InitialPagedList</a></code></td>
<td width="100%">
<p>InitialPagedList is an empty placeholder that's sent at the front of a stream of <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.html">ItemKeyedDataSource</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> ItemKeyedDataSource is deprecated and has been replaced by PagingSource</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.LoadCallback.html">ItemKeyedDataSource.LoadCallback</a></code></td>
<td width="100%">
<p>Callback for ItemKeyedDataSource <code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.html#loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams)">loadBefore</a></code> and <code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.html#loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams)">loadAfter</a></code> to return data.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.LoadInitialCallback.html">ItemKeyedDataSource.LoadInitialCallback</a></code></td>
<td width="100%">
<p>Callback for <code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.html#loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams)">loadInitial</a></code> to return data and, optionally, position/count information.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.LoadInitialParams.html">ItemKeyedDataSource.LoadInitialParams</a></code></td>
<td width="100%">
<p>Holder object for inputs to <code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.html#loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams)">loadInitial</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.LoadParams.html">ItemKeyedDataSource.LoadParams</a></code></td>
<td width="100%">
<p>Holder object for inputs to <code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.html#loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams)">loadBefore</a></code> and <code><a href="/reference/kotlin/androidx/paging/ItemKeyedDataSource.html#loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams)">loadAfter</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ItemSnapshotList.html">ItemSnapshotList</a></code></td>
<td width="100%">
<p>Snapshot of data being presented by a androidx.pagingAsyncPagingDataDiffer or a <code><a href="/reference/kotlin/androidx/paging/PagingDataAdapter.html">PagingDataAdapter</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ListenableFuturePagingSource.html">ListenableFuturePagingSource</a></code></td>
<td width="100%">
<p>ListenableFuture-based compatibility wrapper around <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>'s suspending APIs.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ListenableFutureRemoteMediator.html">ListenableFutureRemoteMediator</a></code></td>
<td width="100%">
<p>ListenableFuture-based compatibility wrapper around <code><a href="/reference/kotlin/androidx/paging/RemoteMediator.html">RemoteMediator</a></code>'s suspending APIs.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code></td>
<td width="100%">
<p>LoadState of a PagedList load - associated with a <code><a href="/reference/kotlin/androidx/paging/LoadType.html">LoadType</a></code></p>
<p><code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code> of any <code><a href="/reference/kotlin/androidx/paging/LoadType.html">LoadType</a></code> may be observed for UI purposes by registering a listener via <code><a href="/reference/kotlin/androidx/paging/PagingDataAdapter.html#addLoadStateListener(kotlin.Function1)">androidx.paging.PagingDataAdapter.addLoadStateListener</a></code> or <code><a href="/reference/kotlin/androidx/paging/AsyncPagingDataDiffer.html#addLoadStateListener(kotlin.Function1)">androidx.paging.AsyncPagingDataDiffer.addLoadStateListener</a></code></p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LoadState.Error.html">LoadState.Error</a></code></td>
<td width="100%">
<p>Loading hit an error.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LoadState.NotLoading.html">LoadState.NotLoading</a></code></td>
<td width="100%">
<p>Indicates the <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> is not currently loading, and no error currently observed.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LoadStateAdapter.html">LoadStateAdapter</a></code></td>
<td width="100%">
<p>Adapter for displaying a RecyclerView item based on <code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code>, such as a loading spinner, or a retry error button.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LoadStates.html">LoadStates</a></code></td>
<td width="100%">
<p>Collection of pagination <code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code>s - refresh, prepend, and append.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/MutableLoadStateCollection.html">MutableLoadStateCollection</a></code></td>
<td width="100%">
<p>TODO: Remove this once <code><a href="/reference/kotlin/androidx/paging/PageEvent.LoadStateUpdate.html">PageEvent.LoadStateUpdate</a></code> contained <code><a href="/reference/kotlin/androidx/paging/CombinedLoadStates.html">CombinedLoadStates</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.html">PageKeyedDataSource</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> PageKeyedDataSource is deprecated and has been replaced by PagingSource</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.LoadCallback.html">PageKeyedDataSource.LoadCallback</a></code></td>
<td width="100%">
<p>Callback for <code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.html#loadBefore(androidx.paging.PageKeyedDataSource.LoadParams)">loadBefore</a></code> and <code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.html#loadAfter(androidx.paging.PageKeyedDataSource.LoadParams)">loadAfter</a></code> to return data.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.LoadInitialCallback.html">PageKeyedDataSource.LoadInitialCallback</a></code></td>
<td width="100%">
<p>Callback for <code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.html#loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams)">loadInitial</a></code> to return data and, optionally, position/count information.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.LoadInitialParams.html">PageKeyedDataSource.LoadInitialParams</a></code></td>
<td width="100%">
<p>Holder object for inputs to <code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.html#loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams)">loadInitial</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.LoadParams.html">PageKeyedDataSource.LoadParams</a></code></td>
<td width="100%">
<p>Holder object for inputs to <code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.html#loadBefore(androidx.paging.PageKeyedDataSource.LoadParams)">loadBefore</a></code> and <code><a href="/reference/kotlin/androidx/paging/PageKeyedDataSource.html#loadAfter(androidx.paging.PageKeyedDataSource.LoadParams)">loadAfter</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a></code></td>
<td width="100%">
<p>Signals when a PagedList has reached the end of available data.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.Builder.html">PagedList.Builder</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData, which no longer supports constructing snapshots of loaded data manually.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code></td>
<td width="100%">
<p>Callback signaling when content is loaded into the list.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>Configures how a <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> loads content from its <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.Config.Builder.html">PagedList.Config.Builder</a></code></td>
<td width="100%">
<p>Builder class for <code><a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.LoadStateManager.html">PagedList.LoadStateManager</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedListAdapter.html">PagedListAdapter</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> PagedListAdapter is deprecated and has been replaced by PagingDataAdapter</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/Pager.html">Pager</a></code></td>
<td width="100%">
<p>Primary entry point into Paging; constructor for a reactive stream of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingConfig.html">PagingConfig</a></code></td>
<td width="100%">
<p>An object used to configure loading behavior within a <code><a href="/reference/kotlin/androidx/paging/Pager.html">Pager</a></code>, as it loads content from a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code></td>
<td width="100%">
<p>Container for Paged data from a single generation of loads.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingDataAdapter.html">PagingDataAdapter</a></code></td>
<td width="100%">
<p>RecyclerView.Adapter base class for presenting paged data from <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code>s in a RecyclerView.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingDataDiffer.html">PagingDataDiffer</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code></td>
<td width="100%">
<p>Base class for an abstraction of pageable static data from some source, where loading pages of data is typically an expensive operation.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingSource.LoadParams.html">PagingSource.LoadParams</a></code></td>
<td width="100%">
<p>Params for a load request on a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html#load(androidx.paging.PagingSource.LoadParams)">PagingSource.load</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingSource.LoadParams.Append.html">PagingSource.LoadParams.Append</a></code></td>
<td width="100%">
<p>Params to load a page of data from a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> via <code><a href="/reference/kotlin/androidx/paging/PagingSource.html#load(androidx.paging.PagingSource.LoadParams)">PagingSource.load</a></code> to be appended to the end of the list.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingSource.LoadParams.Prepend.html">PagingSource.LoadParams.Prepend</a></code></td>
<td width="100%">
<p>Params to load a page of data from a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> via <code><a href="/reference/kotlin/androidx/paging/PagingSource.html#load(androidx.paging.PagingSource.LoadParams)">PagingSource.load</a></code> to be prepended to the start of the list.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingSource.LoadParams.Refresh.html">PagingSource.LoadParams.Refresh</a></code></td>
<td width="100%">
<p>Params for an initial load request on a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html#load(androidx.paging.PagingSource.LoadParams)">PagingSource.load</a></code> or a refresh triggered by <code><a href="/reference/kotlin/androidx/paging/PagingSource.html#invalidate()">invalidate</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingSource.LoadResult.html">PagingSource.LoadResult</a></code></td>
<td width="100%">
<p>Result of a load request from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html#load(androidx.paging.PagingSource.LoadParams)">PagingSource.load</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingSource.LoadResult.Error.html">PagingSource.LoadResult.Error</a></code></td>
<td width="100%">
<p>Error result object for <code><a href="/reference/kotlin/androidx/paging/PagingSource.html#load(androidx.paging.PagingSource.LoadParams)">PagingSource.load</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingSource.LoadResult.Page.html">PagingSource.LoadResult.Page</a></code></td>
<td width="100%">
<p>Success result object for <code><a href="/reference/kotlin/androidx/paging/PagingSource.html#load(androidx.paging.PagingSource.LoadParams)">PagingSource.load</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagingState.html">PagingState</a></code></td>
<td width="100%">
<p>Snapshot state of Paging system including the loaded <code><a href="/reference/kotlin/androidx/paging/PagingState.html#pages()">pages</a></code>, the last accessed <code><a href="/reference/kotlin/androidx/paging/PagingState.html#anchorPosition()">anchorPosition</a></code>, and the <code><a href="/reference/kotlin/androidx/paging/PagingState.html#config()">config</a></code> used.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.html">PositionalDataSource</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> PositionalDataSource is deprecated and has been replaced by PagingSource</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.LoadInitialCallback.html">PositionalDataSource.LoadInitialCallback</a></code></td>
<td width="100%">
<p>Callback for <code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.html#loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams)">loadInitial</a></code> to return data, position, and count.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.LoadInitialParams.html">PositionalDataSource.LoadInitialParams</a></code></td>
<td width="100%">
<p>Holder object for inputs to <code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.html#loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams)">loadInitial</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.LoadRangeCallback.html">PositionalDataSource.LoadRangeCallback</a></code></td>
<td width="100%">
<p>Callback for PositionalDataSource <code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.html#loadRange(androidx.paging.PositionalDataSource.LoadRangeParams)">loadRange</a></code> to return data.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.LoadRangeParams.html">PositionalDataSource.LoadRangeParams</a></code></td>
<td width="100%">
<p>Holder object for inputs to <code><a href="/reference/kotlin/androidx/paging/PositionalDataSource.html#loadRange(androidx.paging.PositionalDataSource.LoadRangeParams)">loadRange</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RemoteMediator.html">RemoteMediator</a></code></td>
<td width="100%">
<p>Defines a set of callbacks, which may be optionally registered when constructing a <code><a href="/reference/kotlin/androidx/paging/Pager.html">Pager</a></code>, that allow for control of the following events:</p>
<ul>
<li>
<p>Stream initialization</p>
</li>
<li>
<p><code><a href="/reference/kotlin/androidx/paging/LoadType.REFRESH.html">LoadType.REFRESH</a></code> signal driven from UI</p>
</li>
<li>
<p><code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> returns a <code><a href="/reference/kotlin/androidx/paging/PagingSource.LoadResult.html">PagingSource.LoadResult</a></code> which signals a boundary condition, i.e., the first page for <code><a href="/reference/kotlin/androidx/paging/LoadType.PREPEND.html">LoadType.PREPEND</a></code> or the last page for <code><a href="/reference/kotlin/androidx/paging/LoadType.APPEND.html">LoadType.APPEND</a></code>.</p>
</li>
</ul>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.html">RemoteMediator.MediatorResult</a></code></td>
<td width="100%">
<p>Return type of <code><a href="/reference/kotlin/androidx/paging/RemoteMediator.html#load(androidx.paging.LoadType,androidx.paging.PagingState)">load</a></code>, which determines <code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Error.html">RemoteMediator.MediatorResult.Error</a></code></td>
<td width="100%">
<p>Recoverable error that can be retried, sets the <code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code> to <code><a href="/reference/kotlin/androidx/paging/LoadState.Error.html">LoadState.Error</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Success.html">RemoteMediator.MediatorResult.Success</a></code></td>
<td width="100%">
<p>Success signaling that <code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code> should be set to <code><a href="/reference/kotlin/androidx/paging/LoadState.NotLoading.html">LoadState.NotLoading</a></code> if <code><a href="/reference/kotlin/androidx/paging/RemoteMediator.MediatorResult.Success.html#endOfPaginationReached()">endOfPaginationReached</a></code> is <code>true</code>, otherwise <code><a href="/reference/kotlin/androidx/paging/LoadState.html">LoadState</a></code> is kept at <code><a href="/reference/kotlin/androidx/paging/LoadState.Loading.html">LoadState.Loading</a></code> to await invalidation.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%">
<p><strong>This class is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>Enums</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LoadType.html">LoadType</a></code></td>
<td width="100%">
<p>Type of load a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> can trigger a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> to perform.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RemoteMediator.InitializeAction.html">RemoteMediator.InitializeAction</a></code></td>
<td width="100%">
<p>Return type of <code><a href="/reference/kotlin/androidx/paging/RemoteMediator.html#initialize()">initialize</a></code>, which signals the action to take after <code><a href="/reference/kotlin/androidx/paging/RemoteMediator.html#initialize()">initialize</a></code> completes.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>Annotations</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/ExperimentalPagingApi.html">ExperimentalPagingApi</a></code></td>
<td width="100%">
<p>Marks experimental Paging APIs, which may have known issues that would likely be solved by a source-incompatible change in newer versions of the artifact that supplies it.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>Top-level functions summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/androidx/paging/package-summary.html#Config(kotlin.Int,kotlin.Int,kotlin.Boolean,kotlin.Int,kotlin.Int)">Config</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;prefetchDistance:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;enablePlaceholders:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadSizeHint:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;maxSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><br>)</code></div>
<p>Constructs a <code><a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code>, convenience for <code><a href="/reference/kotlin/androidx/paging/PagedList.Config.Builder.html">PagedList.Config.Builder</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#PagedList(androidx.paging.DataSource,androidx.paging.PagedList.Config,java.util.concurrent.Executor,java.util.concurrent.Executor,androidx.paging.PagedList.BoundaryCallback,kotlin.Any)">PagedList</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;dataSource:&nbsp;<a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a>&lt;Key,&nbsp;Value&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialKey:&nbsp;Key?<br>)</code></div>
<p><strong>This function is deprecated.</strong> DataSource is deprecated and has been replaced by PagingSource</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>Extension properties summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/androidx/paging/Pager.html">Pager</a>&lt;Key,&nbsp;Value&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#liveData(androidx.paging.Pager)">liveData</a></code></div>
<p>A LiveData of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code>, which mirrors the stream provided by <code><a href="/reference/kotlin/androidx/paging/Pager.html#flow()">Pager.flow</a></code>, but exposes it as a LiveData.</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>Extension functions summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code>@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(kotlinx.coroutines.flow.Flow,kotlinx.coroutines.CoroutineScope)">cachedIn</a>(scope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a>)</code></div>
<p>Caches the <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> such that any downstream collection from this flow will share the same <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code>.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a></code></td>
<td width="100%">
<div><code>&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(LiveData&lt;PagingData&lt;T&gt;&gt;,Lifecycle)">cachedIn</a>(lifecycle:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>)</code></div>
<p>Operator which caches a LiveData of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> within the scope of a Lifecycle.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a></code></td>
<td width="100%">
<div><code>&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(LiveData&lt;PagingData&lt;T&gt;&gt;,kotlinx.coroutines.CoroutineScope)">cachedIn</a>(scope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a>)</code></div>
<p>Operator which caches a LiveData of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> within a <code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a></code>.</p>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;</code></td>
<td width="100%">
<div><code>&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#filter(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">filter</a>(predicate:&nbsp;suspend&nbsp;(T)&nbsp;-&gt;&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)</code></div>
<p>Returns a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> containing only elements matching the given <code><a href="/reference/kotlin/androidx/paging/package-summary.html#predicate()">predicate</a></code></p>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;R&gt;</code></td>
<td width="100%">
<div><code>&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;R&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#flatMap(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">flatMap</a>(transform:&nbsp;suspend&nbsp;(T)&nbsp;-&gt;&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a>&lt;R&gt;)</code></div>
<p>Returns a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> of all elements returned from applying the given <code><a href="/reference/kotlin/androidx/paging/package-summary.html#transform()">transform</a></code> to each element, as it is loaded.</p>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;R&gt;</code></td>
<td width="100%">
<div><code>&lt;T&nbsp;:&nbsp;R,&nbsp;R&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#insertSeparators(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction2)">insertSeparators</a>(generator:&nbsp;suspend&nbsp;(T?,&nbsp;T?)&nbsp;-&gt;&nbsp;R?)</code></div>
<p>Returns a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> containing each original element, with an optional separator generated by <code><a href="/reference/kotlin/androidx/paging/package-summary.html#generator()">generator</a></code>, given the elements before and after (or null, in boundary conditions).</p>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;R&gt;</code></td>
<td width="100%">
<div><code>&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;R&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#map(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">map</a>(transform:&nbsp;suspend&nbsp;(T)&nbsp;-&gt;&nbsp;R)</code></div>
<p>Returns a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> containing the result of applying the given <code><a href="/reference/kotlin/androidx/paging/package-summary.html#transform()">transform</a></code> to each element, as it is loaded.</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toLiveData(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,java.util.concurrent.Executor)">toLiveData</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a><br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toLiveData(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,java.util.concurrent.Executor)">toLiveData</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a><br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toLiveData(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,kotlinx.coroutines.CoroutineScope,kotlinx.coroutines.CoroutineDispatcher)">toLiveData</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;coroutineScope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchDispatcher:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/index.html">CoroutineDispatcher</a><br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toLiveData(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,kotlinx.coroutines.CoroutineScope,kotlinx.coroutines.CoroutineDispatcher)">toLiveData</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;coroutineScope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchDispatcher:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/index.html">CoroutineDispatcher</a><br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?<br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?<br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?<br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key?,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;?,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>?<br>)</code></div>
<p><strong>This function is deprecated.</strong> PagedList is deprecated and has been replaced by PagingData</p>
</td>
</tr>
<tr>
<td><code>@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.LoadParams.html">PagingSource.LoadParams</a>&lt;Key&gt;</code></td>
<td width="100%">
<div><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>.<a href="/reference/kotlin/androidx/paging/package-summary.html#toRefreshLoadParams(androidx.paging.PagedList.Config,kotlin.Any)">toRefreshLoadParams</a>(key:&nbsp;Key?)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<h2>Top-level functions</h2>
<div><a name="Config(kotlin.Int, kotlin.Int, kotlin.Boolean, kotlin.Int, kotlin.Int)"></a><a name="Config-kotlin.Int-kotlin.Int-kotlin.Boolean-kotlin.Int-kotlin.Int-"></a>
<h3 class="api-name" id="Config(kotlin.Int,kotlin.Int,kotlin.Boolean,kotlin.Int,kotlin.Int)">Config</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;<a href="/reference/kotlin/androidx/paging/package-summary.html#Config(kotlin.Int,kotlin.Int,kotlin.Boolean,kotlin.Int,kotlin.Int)">Config</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;prefetchDistance:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = pageSize,<br>&nbsp;&nbsp;&nbsp;&nbsp;enablePlaceholders:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = true,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadSizeHint:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = pageSize * PagedList.Config.Builder.DEFAULT_INITIAL_PAGE_MULTIPLIER,<br>&nbsp;&nbsp;&nbsp;&nbsp;maxSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = PagedList.Config.MAX_SIZE_UNBOUNDED<br>):&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></pre>
<p>Constructs a <code><a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code>, convenience for <code><a href="/reference/kotlin/androidx/paging/PagedList.Config.Builder.html">PagedList.Config.Builder</a></code>.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
<td width="100%">
<p>Number of items loaded at once from the <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>prefetchDistance:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = pageSize</code></td>
<td width="100%">
<p>Distance the PagedList should prefetch.</p>
</td>
</tr>
<tr>
<td><code>enablePlaceholders:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = true</code></td>
<td width="100%">
<p>False if null placeholders should be disabled.</p>
</td>
</tr>
<tr>
<td><code>initialLoadSizeHint:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = pageSize * PagedList.Config.Builder.DEFAULT_INITIAL_PAGE_MULTIPLIER</code></td>
<td width="100%">
<p>Number of items to load while initializing the PagedList.</p>
</td>
</tr>
<tr>
<td><code>maxSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = PagedList.Config.MAX_SIZE_UNBOUNDED</code></td>
<td width="100%">
<p>Maximum number of items to keep in memory, or <code><a href="/reference/kotlin/androidx/paging/PagedList.Config.Companion.html#MAX_SIZE_UNBOUNDED()">PagedList.Config.MAX_SIZE_UNBOUNDED</a></code> to disable page dropping.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="PagedList(androidx.paging.DataSource, androidx.paging.PagedList.Config, java.util.concurrent.Executor, java.util.concurrent.Executor, androidx.paging.PagedList.BoundaryCallback, kotlin.Any)"></a><a name="PagedList-androidx.paging.DataSource-androidx.paging.PagedList.Config-java.util.concurrent.Executor-java.util.concurrent.Executor-androidx.paging.PagedList.BoundaryCallback-kotlin.Any-"></a>
<h3 class="api-name" id="PagedList(androidx.paging.DataSource,androidx.paging.PagedList.Config,java.util.concurrent.Executor,java.util.concurrent.Executor,androidx.paging.PagedList.BoundaryCallback,kotlin.Any)">PagedList</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#PagedList(androidx.paging.DataSource,androidx.paging.PagedList.Config,java.util.concurrent.Executor,java.util.concurrent.Executor,androidx.paging.PagedList.BoundaryCallback,kotlin.Any)">PagedList</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;dataSource:&nbsp;<a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a>&lt;Key,&nbsp;Value&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialKey:&nbsp;Key? = null<br>):&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>DataSource is deprecated and has been replaced by PagingSource</aside>
<p>Constructs a <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>, convenience for <code><a href="/reference/kotlin/androidx/paging/PagedList.Builder.html">PagedList.Builder</a></code>.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt;</code></td>
<td width="100%">
<p>Type of key used to load data from the <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>&lt;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt;</code></td>
<td width="100%">
<p>Type of items held and loaded by the <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</td>
</tr>
<tr>
<td><code>dataSource:&nbsp;<a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a>&lt;Key,&nbsp;Value&gt;</code></td>
<td width="100%">
<p><code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code> the <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> will load from.</p>
</td>
</tr>
<tr>
<td><code>config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>Config that defines how the <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> loads data from its <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>notifyExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a></code></td>
<td width="100%">
<p><code><a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a></code> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI/main thread.</p>
</td>
</tr>
<tr>
<td><code>fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a></code></td>
<td width="100%">
<p><code><a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a></code> used to fetch from <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p><code><a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a></code> for listening to out-of-data events.</p>
</td>
</tr>
<tr>
<td><code>initialKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p><code><a href="/reference/kotlin/androidx/paging/package-summary.html#PagedList(androidx.paging.DataSource,androidx.paging.PagedList.Config,java.util.concurrent.Executor,java.util.concurrent.Executor,androidx.paging.PagedList.BoundaryCallback,kotlin.Any)">Key</a></code> the <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code> should load around as part of initialization.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>Extension properties</h2>
<div><a name="getLiveData(androidx.paging.Pager)"></a><a name="setLiveData(androidx.paging.Pager)"></a><a name="getLiveData-androidx.paging.Pager-"></a><a name="setLiveData-androidx.paging.Pager-"></a>
<h3 class="api-name" id="liveData(androidx.paging.Pager)">liveData</h3>
<pre class="api-signature no-pretty-print">val&nbsp;<a href="/reference/kotlin/androidx/paging/Pager.html">Pager</a>&lt;Key,&nbsp;Value&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#liveData(androidx.paging.Pager)">liveData</a>:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;Value&gt;&gt;</pre>
<p>A <a href="[LiveData]">LiveData</a> of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code>, which mirrors the stream provided by <code><a href="/reference/kotlin/androidx/paging/Pager.html#flow()">Pager.flow</a></code>, but exposes it as a <a href="[LiveData]">LiveData</a>.</p>
</div>
<h2>Extension functions</h2>
<div><a name="cachedIn(kotlinx.coroutines.flow.Flow, kotlinx.coroutines.CoroutineScope)"></a><a name="cachedIn-kotlinx.coroutines.flow.Flow-kotlinx.coroutines.CoroutineScope-"></a>
<h3 class="api-name" id="cachedIn(kotlinx.coroutines.flow.Flow,kotlinx.coroutines.CoroutineScope)">cachedIn</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>fun&nbsp;&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(kotlinx.coroutines.flow.Flow,kotlinx.coroutines.CoroutineScope)">cachedIn</a>(scope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a>):&nbsp;@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;&gt;</pre>
<p>Caches the <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> such that any downstream collection from this flow will share the same <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code>.</p>
<p>The flow is kept active as long as the given <code><a href="/reference/kotlin/androidx/paging/package-summary.html#scope()">scope</a></code> is active. To avoid leaks, make sure to use a <code><a href="/reference/kotlin/androidx/paging/package-summary.html#scope()">scope</a></code> that is already managed (like a ViewModel scope) or manually cancel it when you don't need paging anymore.</p>
<p>A common use case for this caching is to cache <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> in a ViewModel. This can ensure that, upon configuration change (e.g. rotation), then new Activity will receive the existing data immediately rather than fetching it from scratch.</p>
<p>Calling <code><a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(kotlinx.coroutines.flow.Flow,kotlinx.coroutines.CoroutineScope)">cachedIn</a></code> is required to allow calling <a href="[androidx.paging.AsyncPagingDataAdapter]">androidx.paging.AsyncPagingDataAdapter</a> on the same instance of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> emitted by <code><a href="/reference/kotlin/androidx/paging/Pager.html">Pager</a></code> or any of its transformed derivatives, as reloading data from scratch on the same generation of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> is an unsupported operation.</p>
<p>Note that this does not turn the <code>Flow&lt;PagingData&gt;</code> into a hot stream. It won't execute any unnecessary code unless it is being collected.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>scope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a></code></td>
<td width="100%">
<p>The coroutine scope where this page cache will be kept alive.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="cachedIn(LiveData&lt;PagingData&lt;T&gt;&gt;, Lifecycle)"></a><a name="cachedIn-LiveData&lt;PagingData&lt;T&gt;&gt;-Lifecycle-"></a>
<h3 class="api-name" id="cachedIn(LiveData&lt;PagingData&lt;T&gt;&gt;,Lifecycle)">cachedIn</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(LiveData&lt;PagingData&lt;T&gt;&gt;,Lifecycle)">cachedIn</a>(lifecycle:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a></pre>
<p>Operator which caches a <a href="[LiveData]">LiveData</a> of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> within the scope of a <a href="[Lifecycle]">Lifecycle</a>.</p>
<p><code><a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(kotlinx.coroutines.flow.Flow,kotlinx.coroutines.CoroutineScope)">cachedIn</a></code> multicasts pages loaded and transformed by a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code>, allowing multiple observers on the same instance of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> to receive the same events, avoiding redundant work, but comes at the cost of buffering those events in memory.</p>
<p>Calling <code><a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(kotlinx.coroutines.flow.Flow,kotlinx.coroutines.CoroutineScope)">cachedIn</a></code> is required to allow calling <a href="[androidx.paging.AsyncPagingDataAdapter]">androidx.paging.AsyncPagingDataAdapter</a> on the same instance of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> emitted by <code><a href="/reference/kotlin/androidx/paging/Pager.html">Pager</a></code> or any of its transformed derivatives, as reloading data from scratch on the same generation of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> is an unsupported operation.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>lifecycle:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a></code></td>
<td width="100%">
<p>The <a href="[Lifecycle]">Lifecycle</a> where the page cache will be kept alive.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="cachedIn(LiveData&lt;PagingData&lt;T&gt;&gt;, kotlinx.coroutines.CoroutineScope)"></a><a name="cachedIn-LiveData&lt;PagingData&lt;T&gt;&gt;-kotlinx.coroutines.CoroutineScope-"></a>
<h3 class="api-name" id="cachedIn(LiveData&lt;PagingData&lt;T&gt;&gt;,kotlinx.coroutines.CoroutineScope)">cachedIn</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(LiveData&lt;PagingData&lt;T&gt;&gt;,kotlinx.coroutines.CoroutineScope)">cachedIn</a>(scope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a></pre>
<p>Operator which caches a <a href="[LiveData]">LiveData</a> of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> within a <code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a></code>.</p>
<p><code><a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(kotlinx.coroutines.flow.Flow,kotlinx.coroutines.CoroutineScope)">cachedIn</a></code> multicasts pages loaded and transformed by a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code>, allowing multiple observers on the same instance of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> to receive the same events, avoiding redundant work, but comes at the cost of buffering those events in memory.</p>
<p>Calling <code><a href="/reference/kotlin/androidx/paging/package-summary.html#cachedIn(kotlinx.coroutines.flow.Flow,kotlinx.coroutines.CoroutineScope)">cachedIn</a></code> is required to allow calling <a href="[androidx.paging.AsyncPagingDataAdapter]">androidx.paging.AsyncPagingDataAdapter</a> on the same instance of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> emitted by <code><a href="/reference/kotlin/androidx/paging/Pager.html">Pager</a></code> or any of its transformed derivatives, as reloading data from scratch on the same generation of <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> is an unsupported operation.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>scope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a></code></td>
<td width="100%">
<p>The <code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a></code> where the page cache will be kept alive. Typically this would be a managed scope such as <code>ViewModel.viewModelScope</code>, which automatically cancels after the <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> stream is no longer needed. Otherwise, the provided <code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a></code> must be manually cancelled to avoid memory leaks.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="filter(androidx.paging.PagingData, kotlin.coroutines.SuspendFunction1)"></a><a name="filter-androidx.paging.PagingData-kotlin.coroutines.SuspendFunction1-"></a>
<h3 class="api-name" id="filter(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">filter</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>fun&nbsp;&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#filter(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">filter</a>(predicate:&nbsp;suspend&nbsp;(T)&nbsp;-&gt;&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>):&nbsp;@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;</pre>
<p>Returns a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> containing only elements matching the given <code><a href="/reference/kotlin/androidx/paging/package-summary.html#predicate()">predicate</a></code></p>
</div>
<div><a name="flatMap(androidx.paging.PagingData, kotlin.coroutines.SuspendFunction1)"></a><a name="flatMap-androidx.paging.PagingData-kotlin.coroutines.SuspendFunction1-"></a>
<h3 class="api-name" id="flatMap(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">flatMap</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>fun&nbsp;&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;R&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#flatMap(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">flatMap</a>(transform:&nbsp;suspend&nbsp;(T)&nbsp;-&gt;&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a>&lt;R&gt;):&nbsp;@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;R&gt;</pre>
<p>Returns a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> of all elements returned from applying the given <code><a href="/reference/kotlin/androidx/paging/package-summary.html#transform()">transform</a></code> to each element, as it is loaded.</p>
</div>
<div><a name="insertSeparators(androidx.paging.PagingData, kotlin.coroutines.SuspendFunction2)"></a><a name="insertSeparators-androidx.paging.PagingData-kotlin.coroutines.SuspendFunction2-"></a>
<h3 class="api-name" id="insertSeparators(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction2)">insertSeparators</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>fun&nbsp;&lt;T&nbsp;:&nbsp;R,&nbsp;R&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#insertSeparators(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction2)">insertSeparators</a>(generator:&nbsp;suspend&nbsp;(T?,&nbsp;T?)&nbsp;-&gt;&nbsp;R?):&nbsp;@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;R&gt;</pre>
<p>Returns a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> containing each original element, with an optional separator generated by <code><a href="/reference/kotlin/androidx/paging/package-summary.html#generator()">generator</a></code>, given the elements before and after (or null, in boundary conditions).</p>
<p>Note that this transform is applied asynchronously, as pages are loaded. Potential separators between pages are only computed once both pages are loaded.</p>
</div>
<div><a name="map(androidx.paging.PagingData, kotlin.coroutines.SuspendFunction1)"></a><a name="map-androidx.paging.PagingData-kotlin.coroutines.SuspendFunction1-"></a>
<h3 class="api-name" id="map(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">map</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>fun&nbsp;&lt;T&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;R&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;T&gt;.<a href="/reference/kotlin/androidx/paging/package-summary.html#map(androidx.paging.PagingData,kotlin.coroutines.SuspendFunction1)">map</a>(transform:&nbsp;suspend&nbsp;(T)&nbsp;-&gt;&nbsp;R):&nbsp;@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a>&lt;R&gt;</pre>
<p>Returns a <code><a href="/reference/kotlin/androidx/paging/PagingData.html">PagingData</a></code> containing the result of applying the given <code><a href="/reference/kotlin/androidx/paging/package-summary.html#transform()">transform</a></code> to each element, as it is loaded.</p>
</div>
<div><a name="toFlowable(androidx.paging.DataSource.Factory, androidx.paging.PagedList.Config, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, Scheduler, Scheduler, BackpressureStrategy)"></a><a name="toFlowable-androidx.paging.DataSource.Factory-androidx.paging.PagedList.Config-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-Scheduler-Scheduler-BackpressureStrategy-"></a>
<h3 class="api-name" id="toFlowable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a> = BackpressureStrategy.LATEST<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>Flowable&lt;PagedList&gt;</code>, from this <code><a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a></code>, convenience for <code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code>.</p>
<p>The returned <a href="[Flowable]">Flowable</a> will already be subscribed on the <code><a href="/reference/kotlin/androidx/paging/package-summary.html#fetchScheduler()">fetchScheduler</a></code>, and will perform all loading on that scheduler. It will already be observed on <code><a href="/reference/kotlin/androidx/paging/package-summary.html#notifyScheduler()">notifyScheduler</a></code>, and will dispatch new <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>s, as well as their updates to that scheduler.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>Paging configuration.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> used to fetch from <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI / main thread.</p>
</td>
</tr>
<tr>
<td><code>backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a> = BackpressureStrategy.LATEST</code></td>
<td width="100%">
<p><a href="[BackpressureStrategy]">BackpressureStrategy</a> for the <a href="[Flowable]">Flowable</a> to use.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toFlowable(androidx.paging.DataSource.Factory, kotlin.Int, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, Scheduler, Scheduler, BackpressureStrategy)"></a><a name="toFlowable-androidx.paging.DataSource.Factory-kotlin.Int-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-Scheduler-Scheduler-BackpressureStrategy-"></a>
<h3 class="api-name" id="toFlowable(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a> = BackpressureStrategy.LATEST<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>Flowable&lt;PagedList&gt;</code>, from this <code><a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a></code>, convenience for <code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code>.</p>
<p>The returned <a href="[Flowable]">Flowable</a> will already be subscribed on the <code><a href="/reference/kotlin/androidx/paging/package-summary.html#fetchScheduler()">fetchScheduler</a></code>, and will perform all loading on that scheduler. It will already be observed on <code><a href="/reference/kotlin/androidx/paging/package-summary.html#notifyScheduler()">notifyScheduler</a></code>, and will dispatch new <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>s, as well as their updates to that scheduler.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
<td width="100%">
<p>Page size.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> used to fetch from <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI / main thread.</p>
</td>
</tr>
<tr>
<td><code>backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a> = BackpressureStrategy.LATEST</code></td>
<td width="100%">
<p><a href="[BackpressureStrategy]">BackpressureStrategy</a> for the <a href="[Flowable]">Flowable</a> to use.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toFlowable(kotlin.Function0, androidx.paging.PagedList.Config, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, Scheduler, Scheduler, BackpressureStrategy)"></a><a name="toFlowable-kotlin.Function0-androidx.paging.PagedList.Config-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-Scheduler-Scheduler-BackpressureStrategy-"></a>
<h3 class="api-name" id="toFlowable(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a> = BackpressureStrategy.LATEST<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>Flowable&lt;PagedList&gt;</code>, from this <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> factory, convenience for <code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code>.</p>
<p>The returned <a href="[Flowable]">Flowable</a> will already be subscribed on the <code><a href="/reference/kotlin/androidx/paging/package-summary.html#fetchScheduler()">fetchScheduler</a></code>, and will perform all loading on that scheduler. It will already be observed on <code><a href="/reference/kotlin/androidx/paging/package-summary.html#notifyScheduler()">notifyScheduler</a></code>, and will dispatch new <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>s, as well as their updates to that scheduler.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>Paging configuration.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> used to fetch from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI / main thread.</p>
</td>
</tr>
<tr>
<td><code>backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a> = BackpressureStrategy.LATEST</code></td>
<td width="100%">
<p><a href="[BackpressureStrategy]">BackpressureStrategy</a> for the <a href="[Flowable]">Flowable</a> to use.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toFlowable(kotlin.Function0, kotlin.Int, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, Scheduler, Scheduler, BackpressureStrategy)"></a><a name="toFlowable-kotlin.Function0-kotlin.Int-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-Scheduler-Scheduler-BackpressureStrategy-"></a>
<h3 class="api-name" id="toFlowable(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a> = BackpressureStrategy.LATEST<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>Flowable&lt;PagedList&gt;</code>, from this <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> factory, convenience for <code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code>.</p>
<p>The returned <a href="[Flowable]">Flowable</a> will already be subscribed on the <code><a href="/reference/kotlin/androidx/paging/package-summary.html#fetchScheduler()">fetchScheduler</a></code>, and will perform all loading on that scheduler. It will already be observed on <code><a href="/reference/kotlin/androidx/paging/package-summary.html#notifyScheduler()">notifyScheduler</a></code>, and will dispatch new <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>s, as well as their updates to that scheduler.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
<td width="100%">
<p>Page size.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> used to fetch from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI / main thread.</p>
</td>
</tr>
<tr>
<td><code>backpressureStrategy:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a> = BackpressureStrategy.LATEST</code></td>
<td width="100%">
<p><a href="[BackpressureStrategy]">BackpressureStrategy</a> for the <a href="[Flowable]">Flowable</a> to use.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toLiveData(androidx.paging.DataSource.Factory, androidx.paging.PagedList.Config, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, java.util.concurrent.Executor)"></a><a name="toLiveData-androidx.paging.DataSource.Factory-androidx.paging.PagedList.Config-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-java.util.concurrent.Executor-"></a>
<h3 class="api-name" id="toLiveData(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,java.util.concurrent.Executor)">toLiveData</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toLiveData(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,java.util.concurrent.Executor)">toLiveData</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a> = ArchTaskExecutor.getIOThreadExecutor()<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>LiveData&lt;PagedList&gt;</code>, from this <code><a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a></code>, convenience for <code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code>.</p>
<p>No work (such as loading) is done immediately, the creation of the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> is deferred until the <a href="[LiveData]">LiveData</a> is observed.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>Paging configuration.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a> = ArchTaskExecutor.getIOThreadExecutor()</code></td>
<td width="100%">
<p><code><a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a></code> for fetching data from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>s.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toLiveData(androidx.paging.DataSource.Factory, kotlin.Int, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, java.util.concurrent.Executor)"></a><a name="toLiveData-androidx.paging.DataSource.Factory-kotlin.Int-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-java.util.concurrent.Executor-"></a>
<h3 class="api-name" id="toLiveData(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,java.util.concurrent.Executor)">toLiveData</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toLiveData(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,java.util.concurrent.Executor)">toLiveData</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a> = ArchTaskExecutor.getIOThreadExecutor()<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>LiveData&lt;PagedList&gt;</code>, from this <code>DataSource.Factory</code>, convenience for <code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code>.</p>
<p>No work (such as loading) is done immediately, the creation of the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> is deferred until the <a href="[LiveData]">LiveData</a> is observed.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
<td width="100%">
<p>Page size.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>fetchExecutor:&nbsp;<a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a> = ArchTaskExecutor.getIOThreadExecutor()</code></td>
<td width="100%">
<p>Executor for fetching data from DataSources.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toLiveData(kotlin.Function0, androidx.paging.PagedList.Config, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, kotlinx.coroutines.CoroutineScope, kotlinx.coroutines.CoroutineDispatcher)"></a><a name="toLiveData-kotlin.Function0-androidx.paging.PagedList.Config-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-kotlinx.coroutines.CoroutineScope-kotlinx.coroutines.CoroutineDispatcher-"></a>
<h3 class="api-name" id="toLiveData(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,kotlinx.coroutines.CoroutineScope,kotlinx.coroutines.CoroutineDispatcher)">toLiveData</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toLiveData(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,kotlinx.coroutines.CoroutineScope,kotlinx.coroutines.CoroutineDispatcher)">toLiveData</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;coroutineScope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a> = GlobalScope,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchDispatcher:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/index.html">CoroutineDispatcher</a> = ArchTaskExecutor.getIOThreadExecutor()
.asCoroutineDispatcher()<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>LiveData&lt;PagedList&gt;</code>, from this PagingSource factory, convenience for <code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code>.</p>
<p>No work (such as loading) is done immediately, the creation of the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> is deferred until the <a href="[LiveData]">LiveData</a> is observed.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>Paging configuration.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>coroutineScope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a> = GlobalScope</code></td>
<td width="100%">
<p>Set the <code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a></code> that page loads should be launched within. The set <code><a href="/reference/kotlin/androidx/paging/package-summary.html#coroutineScope()">coroutineScope</a></code> allows a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> to cancel running load operations when the results are no longer needed - for example, when the containing activity is destroyed.</p>
<p>Defaults to <code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-global-scope/index.html">GlobalScope</a></code>.</p>
</td>
</tr>
<tr>
<td><code>fetchDispatcher:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/index.html">CoroutineDispatcher</a> = ArchTaskExecutor.getIOThreadExecutor()
.asCoroutineDispatcher()</code></td>
<td width="100%">
<p><code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/index.html">CoroutineDispatcher</a></code> for fetching data from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>s.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toLiveData(kotlin.Function0, kotlin.Int, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, kotlinx.coroutines.CoroutineScope, kotlinx.coroutines.CoroutineDispatcher)"></a><a name="toLiveData-kotlin.Function0-kotlin.Int-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-kotlinx.coroutines.CoroutineScope-kotlinx.coroutines.CoroutineDispatcher-"></a>
<h3 class="api-name" id="toLiveData(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,kotlinx.coroutines.CoroutineScope,kotlinx.coroutines.CoroutineDispatcher)">toLiveData</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toLiveData(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,kotlinx.coroutines.CoroutineScope,kotlinx.coroutines.CoroutineDispatcher)">toLiveData</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;coroutineScope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a> = GlobalScope,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchDispatcher:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/index.html">CoroutineDispatcher</a> = ArchTaskExecutor.getIOThreadExecutor()
.asCoroutineDispatcher()<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>LiveData&lt;PagedList&gt;</code>, from this PagingSource factory, convenience for <code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code>.</p>
<p>No work (such as loading) is done immediately, the creation of the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> is deferred until the <a href="[LiveData]">LiveData</a> is observed.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
<td width="100%">
<p>Page size.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>coroutineScope:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a> = GlobalScope</code></td>
<td width="100%">
<p>Set the <code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html">CoroutineScope</a></code> that page loads should be launched within. The set <code><a href="/reference/kotlin/androidx/paging/package-summary.html#coroutineScope()">coroutineScope</a></code> allows a <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> to cancel running load operations when the results are no longer needed - for example, when the containing activity is destroyed.</p>
<p>Defaults to <code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-global-scope/index.html">GlobalScope</a></code>.</p>
</td>
</tr>
<tr>
<td><code>fetchDispatcher:&nbsp;<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/index.html">CoroutineDispatcher</a> = ArchTaskExecutor.getIOThreadExecutor()
.asCoroutineDispatcher()</code></td>
<td width="100%">
<p><code><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/index.html">CoroutineDispatcher</a></code> for fetching data from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>s.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/LivePagedListBuilder.html">LivePagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toObservable(androidx.paging.DataSource.Factory, androidx.paging.PagedList.Config, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, Scheduler, Scheduler)"></a><a name="toObservable-androidx.paging.DataSource.Factory-androidx.paging.PagedList.Config-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-Scheduler-Scheduler-"></a>
<h3 class="api-name" id="toObservable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>Observable&lt;PagedList&gt;</code> from this <code><a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a></code>, convenience for <code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code>.</p>
<p>The returned <a href="[Observable]">Observable</a> will already be subscribed on the <code><a href="/reference/kotlin/androidx/paging/package-summary.html#fetchScheduler()">fetchScheduler</a></code>, and will perform all loading on that scheduler. It will already be observed on <code><a href="/reference/kotlin/androidx/paging/package-summary.html#notifyScheduler()">notifyScheduler</a></code>, and will dispatch new <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>s, as well as their updates to that scheduler.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>Paging configuration.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to PagedList load state.</p>
</td>
</tr>
<tr>
<td><code>fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> used to fetch from <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI / main thread.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toObservable(androidx.paging.DataSource.Factory, kotlin.Int, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, Scheduler, Scheduler)"></a><a name="toObservable-androidx.paging.DataSource.Factory-kotlin.Int-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-Scheduler-Scheduler-"></a>
<h3 class="api-name" id="toObservable(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(androidx.paging.DataSource.Factory,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>Observable&lt;PagedList&gt;</code> from this <code><a href="/reference/kotlin/androidx/paging/DataSource.Factory.html">DataSource.Factory</a></code>, convenience for <code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code>.</p>
<p>The returned <a href="[Observable]">Observable</a> will already be subscribed on the <code><a href="/reference/kotlin/androidx/paging/package-summary.html#fetchScheduler()">fetchScheduler</a></code>, and will perform all loading on that scheduler. It will already be observed on <code><a href="/reference/kotlin/androidx/paging/package-summary.html#notifyScheduler()">notifyScheduler</a></code>, and will dispatch new <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>s, as well as their updates to that scheduler.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
<td width="100%">
<p>Size of pages to load.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> used to fetch from <code><a href="/reference/kotlin/androidx/paging/DataSource.html">DataSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI / main thread.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toObservable(kotlin.Function0, androidx.paging.PagedList.Config, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, Scheduler, Scheduler)"></a><a name="toObservable-kotlin.Function0-androidx.paging.PagedList.Config-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-Scheduler-Scheduler-"></a>
<h3 class="api-name" id="toObservable(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(kotlin.Function0,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>Observable&lt;PagedList&gt;</code> from this <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> factory, convenience for <code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code>.</p>
<p>The returned <a href="[Observable]">Observable</a> will already be subscribed on the <code><a href="/reference/kotlin/androidx/paging/package-summary.html#fetchScheduler()">fetchScheduler</a></code>, and will perform all loading on that scheduler. It will already be observed on <code><a href="/reference/kotlin/androidx/paging/package-summary.html#notifyScheduler()">notifyScheduler</a></code>, and will dispatch new <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>s, as well as their updates to that scheduler.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>config:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>Paging configuration.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to PagedList load state.</p>
</td>
</tr>
<tr>
<td><code>fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> used to fetch from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI / main thread.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toObservable(kotlin.Function0, kotlin.Int, kotlin.Any, androidx.paging.PagedList.BoundaryCallback, Scheduler, Scheduler)"></a><a name="toObservable-kotlin.Function0-kotlin.Int-kotlin.Any-androidx.paging.PagedList.BoundaryCallback-Scheduler-Scheduler-"></a>
<h3 class="api-name" id="toObservable(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</h3>
<pre class="api-signature no-pretty-print">fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>,&nbsp;Value&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; ()&nbsp;-&gt;&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a>&lt;Key,&nbsp;Value&gt;.<span><del><a href="/reference/kotlin/androidx/paging/package-summary.html#toObservable(kotlin.Function0,kotlin.Int,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler)">toObservable</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;initialLoadKey:&nbsp;Key? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null<br>):&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&lt;<a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a>&lt;Value&gt;&gt;</pre>
<aside class="caution"><strong>This function is deprecated.</strong><br>PagedList is deprecated and has been replaced by PagingData</aside>
<p>Constructs a <code>Observable&lt;PagedList&gt;</code> from this <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code> factory, convenience for <code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code>.</p>
<p>The returned <a href="[Observable]">Observable</a> will already be subscribed on the <code><a href="/reference/kotlin/androidx/paging/package-summary.html#fetchScheduler()">fetchScheduler</a></code>, and will perform all loading on that scheduler. It will already be observed on <code><a href="/reference/kotlin/androidx/paging/package-summary.html#notifyScheduler()">notifyScheduler</a></code>, and will dispatch new <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code>s, as well as their updates to that scheduler.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>pageSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
<td width="100%">
<p>Size of pages to load.</p>
</td>
</tr>
<tr>
<td><code>initialLoadKey:&nbsp;Key? = null</code></td>
<td width="100%">
<p>Initial load key passed to the first <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> / <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>.</p>
</td>
</tr>
<tr>
<td><code>boundaryCallback:&nbsp;<a href="/reference/kotlin/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;Value&gt;? = null</code></td>
<td width="100%">
<p>The boundary callback for listening to <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> load state.</p>
</td>
</tr>
<tr>
<td><code>fetchScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> used to fetch from <code><a href="/reference/kotlin/androidx/paging/PagingSource.html">PagingSource</a></code>s, generally a background thread pool for e.g. I/O or network loading.</p>
</td>
</tr>
<tr>
<td><code>notifyScheduler:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>? = null</code></td>
<td width="100%">
<p><a href="[Scheduler]">Scheduler</a> that receives <code><a href="/reference/kotlin/androidx/paging/PagedList.html">PagedList</a></code> updates, and where <code><a href="/reference/kotlin/androidx/paging/PagedList.Callback.html">PagedList.Callback</a></code> calls are dispatched. Generally, this is the UI / main thread.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/RxPagedListBuilder.html">RxPagedListBuilder</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/androidx/paging/package-summary.html#toFlowable(androidx.paging.DataSource.Factory,androidx.paging.PagedList.Config,kotlin.Any,androidx.paging.PagedList.BoundaryCallback,Scheduler,Scheduler,BackpressureStrategy)">toFlowable</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="toRefreshLoadParams(androidx.paging.PagedList.Config, kotlin.Any)"></a><a name="toRefreshLoadParams-androidx.paging.PagedList.Config-kotlin.Any-"></a>
<h3 class="api-name" id="toRefreshLoadParams(androidx.paging.PagedList.Config,kotlin.Any)">toRefreshLoadParams</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>fun&nbsp;&lt;Key&nbsp;:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="/reference/kotlin/androidx/paging/PagedList.Config.html">PagedList.Config</a>.<a href="/reference/kotlin/androidx/paging/package-summary.html#toRefreshLoadParams(androidx.paging.PagedList.Config,kotlin.Any)">toRefreshLoadParams</a>(key:&nbsp;Key?):&nbsp;@<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/kotlin/androidx/paging/PagingSource.LoadParams.html">PagingSource.LoadParams</a>&lt;Key&gt;</pre>
</div>
</body>
</html>