ItemTouchHelper

constructor(@NonNull callback: ItemTouchHelper.Callback)(source)

Creates an ItemTouchHelper that will work with the given Callback.

You can attach ItemTouchHelper to a RecyclerView via attachToRecyclerView. Upon attaching, it will add an item decoration, an onItemTouchListener and a Child attach / detach listener to the RecyclerView.

Parameters

callback

The Callback which controls the behavior of this touch helper.