sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
recyclerview
/
androidx.recyclerview.widget
/
AdapterListUpdateCallback
Adapter
List
Update
Callback
class
AdapterListUpdateCallback
:
ListUpdateCallback
(
source
)
ListUpdateCallback that dispatches update events to the given adapter.
See also
DiffUtil.
DiffResult
Members
Constructors
Adapter
List
Update
Callback
Link copied to clipboard
constructor
(
@
NonNull
adapter
:
RecyclerView.Adapter
)
Creates an AdapterListUpdateCallback that will dispatch update events to the given adapter.
Functions
on
Changed
Link copied to clipboard
open
fun
onChanged
(
position
:
Int
,
count
:
Int
,
payload
:
Any
)
Called when count} number of items are updated at the given position.
on
Inserted
Link copied to clipboard
open
fun
onInserted
(
position
:
Int
,
count
:
Int
)
Called when count} number of items are inserted at the given position.
on
Moved
Link copied to clipboard
open
fun
onMoved
(
fromPosition
:
Int
,
toPosition
:
Int
)
Called when an item changes its position in the list.
on
Removed
Link copied to clipboard
open
fun
onRemoved
(
position
:
Int
,
count
:
Int
)
Called when count} number of items are removed from the given position.