getDragDirs

open fun getDragDirs(@NonNull recyclerView: RecyclerView, @NonNull viewHolder: RecyclerView.ViewHolder): Int(source)

Returns the drag directions for the provided ViewHolder. Default implementation returns the drag directions that was set via constructor or setDefaultDragDirs.

Return

A binary OR of direction flags.

Parameters

recyclerView

The RecyclerView to which the ItemTouchHelper is attached to.

viewHolder

The ViewHolder for which the swipe direction is queried.