Android 12 Developer Preview is here! Try it out, and give us your feedback!

SortedListAdapterCallback

abstract class SortedListAdapterCallback<T2 : Any!> : SortedList.Callback<T2>
kotlin.Any
   ↳ androidx.recyclerview.widget.SortedList.Callback<T2>
   ↳ androidx.recyclerview.widget.SortedListAdapterCallback

A SortedList.Callback implementation that can bind a SortedList to a RecyclerView.Adapter.

Summary

Public constructors

Creates a SortedList.Callback that will forward data change events to the provided Adapter.

Public methods
open Unit
onChanged(position: Int, count: Int)

open Unit
onChanged(position: Int, count: Int, payload: Any?)

open Unit
onInserted(position: Int, count: Int)

open Unit
onMoved(fromPosition: Int, toPosition: Int)

open Unit
onRemoved(position: Int, count: Int)

Inherited functions

Public constructors

<init>

SortedListAdapterCallback(adapter: RecyclerView.Adapter<