getSwipeThreshold

open override fun getSwipeThreshold(viewHolder: RecyclerView.ViewHolder): Float

滑动距离速率来判断当前是否执行滑动删除事件(可以理解为移出itemView)

Parameters

viewHolder

拖拽触发的Item