The Android Developer Challenge is back! Submit your idea before December 2.

AsyncDifferConfig

class AsyncDifferConfig<T : Any!>
kotlin.Any
   ↳ androidx.recyclerview.widget.AsyncDifferConfig

Configuration object for ListAdapter, AsyncListDiffer, and similar background-thread list diffing adapter logic.

At minimum, defines item diffing behavior with a DiffUtil.ItemCallback, used to compute item differences to pass to a RecyclerView adapter.

Summary

Nested classes

Builder class for AsyncDifferConfig.

Public methods

Executor

DiffUtil.ItemCallback<T>

Public methods

getBackgroundThreadExecutor

@NonNull fun getBackgroundThreadExecutor(): Executor

getDiffCallback

@NonNull fun getDiffCallback(): DiffUtil.ItemCallback<T>