# AsyncListDiffer.ListListener

# AsyncListDiffer.ListListener

Artifact:[androidx.recyclerview:recyclerview](https://developer.android.com/jetpack/androidx/releases/recyclerview)  
[View Source](https://cs.android.com/search?q=file:androidx/recyclerview/widget/AsyncListDiffer.java+class:androidx.recyclerview.widget.AsyncListDiffer.ListListener)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/recyclerview/widget/AsyncListDiffer.ListListener "View this page in Java")

<br />

```
interface AsyncListDiffer.ListListener<T>
```

<br />

*** ** * ** ***

Listener for when the current List is updated.  

| Parameters |
|------------|-----------------------|
| `<T>`      | Type of items in List |

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onCurrentListChanged](https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/AsyncListDiffer.ListListener#onCurrentListChanged(java.util.List<T>,java.util.List<T>))`(` ` previousList: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<T!>,` ` currentList: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<T!>` `)` Called after the current List has been updated. |

## Public functions

### onCurrentListChanged

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.1.0)  

```
fun onCurrentListChanged(
    previousList: (Mutable)List<T!>,
    currentList: (Mutable)List<T!>
): Unit
```

Called after the current List has been updated.  

|                                                                                                       Parameters                                                                                                        |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|
| `previousList: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<T!>` | The previous list.    |
| `currentList: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<T!>`  | The new current list. |