AsyncListDiffer
constructor(@NonNull adapter: RecyclerView.Adapter, @NonNull diffCallback: DiffUtil.ItemCallback<T>)(source)
Convenience for AsyncListDiffer(new AdapterListUpdateCallback(adapter),
new AsyncDifferConfig.Builder().setDiffCallback(diffCallback).build());
Parameters
adapter
Adapter to dispatch position updates to.
diffCallback
ItemCallback that compares items to dispatch appropriate animations when
See also
constructor(@NonNull listUpdateCallback: ListUpdateCallback, @NonNull config: AsyncDifferConfig<T>)(source)
Create a AsyncListDiffer with the provided config, and ListUpdateCallback to dispatch updates to.
Parameters
listUpdateCallback
Callback to dispatch updates to.
config
Config to define background work Executor, and DiffUtil.ItemCallback for computing List diffs.