# 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)

*** ** * ** ***

Common/AllAndroid/JVMNative/C/iOSJavaScript
- android

  ```
  interface AsyncPagedListDiffer.PagedListListener<T : Any>
  ```

*** ** * ** ***

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

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

| Parameters |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | Type of items in `https://developer.android.com/reference/kotlin/androidx/paging/PagedList` |

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onCurrentListChanged](https://developer.android.com/reference/kotlin/androidx/paging/AsyncPagedListDiffer.PagedListListener#onCurrentListChanged(androidx.paging.PagedList,androidx.paging.PagedList))( previousList: https://developer.android.com/reference/kotlin/androidx/paging/PagedList<T>?, currentList: https://developer.android.com/reference/kotlin/androidx/paging/PagedList<T>? )` **This function is deprecated.** AsyncPagedListDiffer is deprecated and has been replaced by AsyncPagingDataDiffer | android |

## Public functions

### onCurrentListChanged

android 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)

```
fun [onCurrentListChanged](https://developer.android.com/reference/kotlin/androidx/paging/AsyncPagedListDiffer.PagedListListener#onCurrentListChanged(androidx.paging.PagedList,androidx.paging.PagedList))(
    previousList: PagedList<T>?,
    currentList: PagedList<T>?
): Unit
```

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

Called after the current PagedList has been updated.

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