getSwipeDirs

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

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

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.