Epoxy Touch Helper Callback
A wrapper around androidx.recyclerview.widget.ItemTouchHelper.Callback to cast all view holders to com.airbnb.epoxy.EpoxyViewHolder for simpler use with Epoxy.
Functions
canDropOver
Link copied to clipboard
open fun canDropOver(recyclerView: RecyclerView, current: RecyclerView.ViewHolder, target: RecyclerView.ViewHolder): Boolean
Content copied to clipboard
fun canDropOver(recyclerView: RecyclerView, current: RecyclerView.ViewHolder, target: RecyclerView.ViewHolder): Boolean
Content copied to clipboard
chooseDropTarget
Link copied to clipboard
open fun chooseDropTarget(selected: RecyclerView.ViewHolder, dropTargets: List<RecyclerView.ViewHolder>, curX: Int, curY: Int): RecyclerView.ViewHolder
Content copied to clipboard
fun chooseDropTarget(selected: RecyclerView.ViewHolder, dropTargets: List, curX: Int, curY: Int): RecyclerView.ViewHolder
Content copied to clipboard
clearView
Link copied to clipboard
open fun clearView(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder)
Content copied to clipboard
fun clearView(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder)
Content copied to clipboard
convertToAbsoluteDirection
Link copied to clipboard
open fun convertToAbsoluteDirection(flags: Int, layoutDirection: Int): Int
Content copied to clipboard
convertToRelativeDirection
Link copied to clipboard
open fun convertToRelativeDirection(flags: Int, layoutDirection: Int): Int
Content copied to clipboard
getAnimationDuration
Link copied to clipboard
open fun getAnimationDuration(recyclerView: RecyclerView, animationType: Int, animateDx: Float, animateDy: Float): Long
Content copied to clipboard
getBoundingBoxMargin
Link copied to clipboard
getDefaultUIUtil
Link copied to clipboard
getMovementFlags
Link copied to clipboard
abstract fun getMovementFlags(p: RecyclerView, p1: RecyclerView.ViewHolder): Int
Content copied to clipboard
fun getMovementFlags(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder): Int
Content copied to clipboard
getMoveThreshold
Link copied to clipboard
getSwipeEscapeVelocity
Link copied to clipboard
getSwipeThreshold
Link copied to clipboard
getSwipeVelocityThreshold
Link copied to clipboard
interpolateOutOfBoundsScroll
Link copied to clipboard
open fun interpolateOutOfBoundsScroll(recyclerView: RecyclerView, viewSize: Int, viewSizeOutOfBounds: Int, totalSize: Int, msSinceStartScroll: Long): Int
Content copied to clipboard
isItemViewSwipeEnabled
Link copied to clipboard
isLongPressDragEnabled
Link copied to clipboard
makeMovementFlags
Link copied to clipboard
onChildDraw
Link copied to clipboard
open fun onChildDraw(c: Canvas, recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, dX: Float, dY: Float, actionState: Int, isCurrentlyActive: Boolean)
Content copied to clipboard
fun onChildDraw(c: Canvas, recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, dX: Float, dY: Float, actionState: Int, isCurrentlyActive: Boolean)
Content copied to clipboard
onChildDrawOver
Link copied to clipboard
open fun onChildDrawOver(c: Canvas, recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, dX: Float, dY: Float, actionState: Int, isCurrentlyActive: Boolean)
Content copied to clipboard
fun onChildDrawOver(c: Canvas, recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, dX: Float, dY: Float, actionState: Int, isCurrentlyActive: Boolean)
Content copied to clipboard
onMove
Link copied to clipboard
abstract fun onMove(p: RecyclerView, p1: RecyclerView.ViewHolder, p2: RecyclerView.ViewHolder): Boolean
Content copied to clipboard
fun onMove(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, target: RecyclerView.ViewHolder): Boolean
Content copied to clipboard
onMoved
Link copied to clipboard
open fun onMoved(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, fromPos: Int, target: RecyclerView.ViewHolder, toPos: Int, x: Int, y: Int)
Content copied to clipboard
fun onMoved(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder, fromPos: Int, target: RecyclerView.ViewHolder, toPos: Int, x: Int, y: Int)
Content copied to clipboard
onSelectedChanged
Link copied to clipboard
open fun onSelectedChanged(viewHolder: RecyclerView.ViewHolder, actionState: Int)
Content copied to clipboard
fun onSelectedChanged(viewHolder: RecyclerView.ViewHolder, actionState: Int)
Content copied to clipboard
onSwiped
Link copied to clipboard
Inheritors
EpoxyModelTouchCallback
Link copied to clipboard