# AsyncPagedListDiffer.PagedListListener

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

*** ** * ** ***


```
public interface AsyncPagedListDiffer.PagedListListener<T extends Object>
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> PagedList is deprecated and has been replaced by PagingData

Listener for when the current `https://developer.android.com/reference/androidx/paging/PagedList` is updated.

| Parameters |
|---|---|
| `<T extends https://developer.android.com/reference/java/lang/Object.html>` | Type of items in `https://developer.android.com/reference/androidx/paging/PagedList` |

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `[onCurrentListChanged](https://developer.android.com/reference/androidx/paging/AsyncPagedListDiffer.PagedListListener#onCurrentListChanged(androidx.paging.PagedList,androidx.paging.PagedList))( https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull T> previousList, https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull T> currentList )` **This method is deprecated.** AsyncPagedListDiffer is deprecated and has been replaced by AsyncPagingDataDiffer |

## Public methods

### onCurrentListChanged

Added in [2.1.0](https://developer.android.com/jetpack/androidx/releases/paging#2.1.0) Deprecated in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

```
abstract void [onCurrentListChanged](https://developer.android.com/reference/androidx/paging/AsyncPagedListDiffer.PagedListListener#onCurrentListChanged(androidx.paging.PagedList,androidx.paging.PagedList))(
    PagedList<@NonNull T> previousList,
    PagedList<@NonNull T> currentList
)
```

> [!CAUTION]
> **This method is deprecated.**   
> AsyncPagedListDiffer is deprecated and has been replaced by AsyncPagingDataDiffer, use this instead:
>
> ```
> AsyncPagingDataDiffer<T>
> ```

Called after the current PagedList has been updated.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull T> previousList` | The previous list, may be null. |
| `https://developer.android.com/reference/androidx/paging/PagedList<@https://developer.android.com/reference/androidx/annotation/NonNull T> currentList` | The new current list, may be null. |