# android.arch.paging

# android.arch.paging

| The`android.arch`Architecture Components packages are no longer maintained. They have been superseded by the corresponding[androidx.\*](https://developer.android.com/jetpack/androidx/migrate)packages. See[androidx.paging](https://developer.android.com/reference/androidx/paging/package-summary)instead.

## Interfaces

|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------|
| [DataSource.InvalidatedCallback](https://developer.android.com/reference/android/arch/paging/DataSource.InvalidatedCallback) | Invalidation callback for DataSource. |

## Classes

|--------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AsyncPagedListDiffer](https://developer.android.com/reference/android/arch/paging/AsyncPagedListDiffer)\<T\>                                                | Helper object for mapping a[PagedList](https://developer.android.com/reference/android/arch/paging/PagedList)into a[RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter).                                                                                                                                                                                                                                                                                                                                         |
| [DataSource](https://developer.android.com/reference/android/arch/paging/DataSource)\<Key, Value\>                                                           | Base class for loading pages of snapshot data into a[PagedList](https://developer.android.com/reference/android/arch/paging/PagedList).                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [DataSource.Factory](https://developer.android.com/reference/android/arch/paging/DataSource.Factory)\<Key, Value\>                                           | Factory for DataSources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [ItemKeyedDataSource](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource)\<Key, Value\>                                         | Incremental data loader for paging keyed content, where loaded content uses previously loaded items as input to future loads.                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [ItemKeyedDataSource.LoadCallback](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadCallback)\<Value\>                    | Callback for ItemKeyedDataSource[loadBefore(LoadParams, LoadCallback)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource#loadBefore(android.arch.paging.ItemKeyedDataSource.LoadParams<Key>, android.arch.paging.ItemKeyedDataSource.LoadCallback<Value>))and[loadAfter(LoadParams, LoadCallback)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource#loadAfter(android.arch.paging.ItemKeyedDataSource.LoadParams<Key>, android.arch.paging.ItemKeyedDataSource.LoadCallback<Value>))to return data.           |
| [ItemKeyedDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialCallback)\<Value\>      | Callback for[loadInitial(LoadInitialParams, LoadInitialCallback)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource#loadInitial(android.arch.paging.ItemKeyedDataSource.LoadInitialParams<Key>, android.arch.paging.ItemKeyedDataSource.LoadInitialCallback<Value>))to return data and, optionally, position/count information.                                                                                                                                                                                                              |
| [ItemKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams)\<Key\>            | Holder object for inputs to[loadInitial(LoadInitialParams, LoadInitialCallback)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource#loadInitial(android.arch.paging.ItemKeyedDataSource.LoadInitialParams<Key>, android.arch.paging.ItemKeyedDataSource.LoadInitialCallback<Value>)).                                                                                                                                                                                                                                                         |
| [ItemKeyedDataSource.LoadParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadParams)\<Key\>                          | Holder object for inputs to[loadBefore(LoadParams, LoadCallback)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource#loadBefore(android.arch.paging.ItemKeyedDataSource.LoadParams<Key>, android.arch.paging.ItemKeyedDataSource.LoadCallback<Value>))and[loadAfter(LoadParams, LoadCallback)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource#loadAfter(android.arch.paging.ItemKeyedDataSource.LoadParams<Key>, android.arch.paging.ItemKeyedDataSource.LoadCallback<Value>)).                              |
| [LivePagedListBuilder](https://developer.android.com/reference/android/arch/paging/LivePagedListBuilder)\<Key, Value\>                                       | Builder for`LiveData<PagedList>`, given a[DataSource.Factory](https://developer.android.com/reference/android/arch/paging/DataSource.Factory)and a[PagedList.Config](https://developer.android.com/reference/android/arch/paging/PagedList.Config).                                                                                                                                                                                                                                                                                                                        |
| [PagedList](https://developer.android.com/reference/android/arch/paging/PagedList)\<T\>                                                                      | Lazy loading list that pages in immutable content from a[DataSource](https://developer.android.com/reference/android/arch/paging/DataSource).                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [PagedList.BoundaryCallback](https://developer.android.com/reference/android/arch/paging/PagedList.BoundaryCallback)\<T\>                                    | Signals when a PagedList has reached the end of available data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [PagedList.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Builder)\<Key, Value\>                                             | Builder class for PagedList.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [PagedList.Callback](https://developer.android.com/reference/android/arch/paging/PagedList.Callback)                                                         | Callback signaling when content is loaded into the list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [PagedList.Config](https://developer.android.com/reference/android/arch/paging/PagedList.Config)                                                             | Configures how a PagedList loads content from its DataSource.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [PagedList.Config.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Config.Builder)                                             | Builder class for[PagedList.Config](https://developer.android.com/reference/android/arch/paging/PagedList.Config).                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [PagedListAdapter](https://developer.android.com/reference/android/arch/paging/PagedListAdapter)\<T, VH extends RecyclerView.ViewHolder\>                    | [RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter)base class for presenting paged data from[PagedList](https://developer.android.com/reference/android/arch/paging/PagedList)s in a[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView).                                                                                                                                                                                                                             |
| [PageKeyedDataSource](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource)\<Key, Value\>                                         | Incremental data loader for page-keyed content, where requests return keys for next/previous pages.                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [PageKeyedDataSource.LoadCallback](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadCallback)\<Key, Value\>               | Callback for PageKeyedDataSource[loadBefore(LoadParams, LoadCallback)](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource#loadBefore(android.arch.paging.PageKeyedDataSource.LoadParams<Key>, android.arch.paging.PageKeyedDataSource.LoadCallback<Key, Value>))and[loadAfter(LoadParams, LoadCallback)](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource#loadAfter(android.arch.paging.PageKeyedDataSource.LoadParams<Key>, android.arch.paging.PageKeyedDataSource.LoadCallback<Key, Value>))to return data. |
| [PageKeyedDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadInitialCallback)\<Key, Value\> | Callback for[loadInitial(LoadInitialParams, LoadInitialCallback)](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource#loadInitial(android.arch.paging.PageKeyedDataSource.LoadInitialParams<Key>, android.arch.paging.PageKeyedDataSource.LoadInitialCallback<Key, Value>))to return data and, optionally, position/count information.                                                                                                                                                                                                         |
| [PageKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadInitialParams)\<Key\>            | Holder object for inputs to[loadInitial(LoadInitialParams, LoadInitialCallback)](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource#loadInitial(android.arch.paging.PageKeyedDataSource.LoadInitialParams<Key>, android.arch.paging.PageKeyedDataSource.LoadInitialCallback<Key, Value>)).                                                                                                                                                                                                                                                    |
| [PageKeyedDataSource.LoadParams](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadParams)\<Key\>                          | Holder object for inputs to[loadBefore(LoadParams, LoadCallback)](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource#loadBefore(android.arch.paging.PageKeyedDataSource.LoadParams<Key>, android.arch.paging.PageKeyedDataSource.LoadCallback<Key, Value>))and[loadAfter(LoadParams, LoadCallback)](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource#loadAfter(android.arch.paging.PageKeyedDataSource.LoadParams<Key>, android.arch.paging.PageKeyedDataSource.LoadCallback<Key, Value>)).                    |
| [PositionalDataSource](https://developer.android.com/reference/android/arch/paging/PositionalDataSource)\<T\>                                                | Position-based data loader for a fixed-size, countable data set, supporting fixed-size loads at arbitrary page positions.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PositionalDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialCallback)\<T\>        | Callback for[loadInitial(LoadInitialParams, LoadInitialCallback)](https://developer.android.com/reference/android/arch/paging/PositionalDataSource#loadInitial(android.arch.paging.PositionalDataSource.LoadInitialParams, android.arch.paging.PositionalDataSource.LoadInitialCallback<T>))to return data, position, and count.                                                                                                                                                                                                                                           |
| [PositionalDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialParams)                 | Holder object for inputs to[loadInitial(LoadInitialParams, LoadInitialCallback)](https://developer.android.com/reference/android/arch/paging/PositionalDataSource#loadInitial(android.arch.paging.PositionalDataSource.LoadInitialParams, android.arch.paging.PositionalDataSource.LoadInitialCallback<T>)).                                                                                                                                                                                                                                                               |
| [PositionalDataSource.LoadRangeCallback](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadRangeCallback)\<T\>            | Callback for PositionalDataSource[loadRange(LoadRangeParams, LoadRangeCallback)](https://developer.android.com/reference/android/arch/paging/PositionalDataSource#loadRange(android.arch.paging.PositionalDataSource.LoadRangeParams, android.arch.paging.PositionalDataSource.LoadRangeCallback<T>))to return data.                                                                                                                                                                                                                                                       |
| [PositionalDataSource.LoadRangeParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadRangeParams)                     | Holder object for inputs to[loadRange(LoadRangeParams, LoadRangeCallback)](https://developer.android.com/reference/android/arch/paging/PositionalDataSource#loadRange(android.arch.paging.PositionalDataSource.LoadRangeParams, android.arch.paging.PositionalDataSource.LoadRangeCallback<T>)).                                                                                                                                                                                                                                                                           |
| [RxPagedListBuilder](https://developer.android.com/reference/android/arch/paging/RxPagedListBuilder)\<Key, Value\>                                           | Builder for`Observable<PagedList>`or`Flowable<PagedList>`, given a[DataSource.Factory](https://developer.android.com/reference/android/arch/paging/DataSource.Factory)and a[PagedList.Config](https://developer.android.com/reference/android/arch/paging/PagedList.Config).                                                                                                                                                                                                                                                                                               |

-

  ## Interfaces

  - [DataSource.InvalidatedCallback](https://developer.android.com/reference/android/arch/paging/DataSource.InvalidatedCallback)
-

  ## Classes

  - [AsyncPagedListDiffer](https://developer.android.com/reference/android/arch/paging/AsyncPagedListDiffer)
  - [DataSource](https://developer.android.com/reference/android/arch/paging/DataSource)
  - [DataSource.Factory](https://developer.android.com/reference/android/arch/paging/DataSource.Factory)
  - [ItemKeyedDataSource](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource)
  - [ItemKeyedDataSource.LoadCallback](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadCallback)
  - [ItemKeyedDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialCallback)
  - [ItemKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams)
  - [ItemKeyedDataSource.LoadParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadParams)
  - [LivePagedListBuilder](https://developer.android.com/reference/android/arch/paging/LivePagedListBuilder)
  - [PagedList](https://developer.android.com/reference/android/arch/paging/PagedList)
  - [PagedList.BoundaryCallback](https://developer.android.com/reference/android/arch/paging/PagedList.BoundaryCallback)
  - [PagedList.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Builder)
  - [PagedList.Callback](https://developer.android.com/reference/android/arch/paging/PagedList.Callback)
  - [PagedList.Config](https://developer.android.com/reference/android/arch/paging/PagedList.Config)
  - [PagedList.Config.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Config.Builder)
  - [PagedListAdapter](https://developer.android.com/reference/android/arch/paging/PagedListAdapter)
  - [PageKeyedDataSource](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource)
  - [PageKeyedDataSource.LoadCallback](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadCallback)
  - [PageKeyedDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadInitialCallback)
  - [PageKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadInitialParams)
  - [PageKeyedDataSource.LoadParams](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadParams)
  - [PositionalDataSource](https://developer.android.com/reference/android/arch/paging/PositionalDataSource)
  - [PositionalDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialCallback)
  - [PositionalDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialParams)
  - [PositionalDataSource.LoadRangeCallback](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadRangeCallback)
  - [PositionalDataSource.LoadRangeParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadRangeParams)
  - [RxPagedListBuilder](https://developer.android.com/reference/android/arch/paging/RxPagedListBuilder)