EpoxyDragCallback

interface EpoxyDragCallback<T : EpoxyModel?> : BaseEpoxyTouchCallback<T>

For use with EpoxyModelTouchCallback

Functions

clearView
Link copied to clipboard
abstract fun clearView(model: T, itemView: View)
Called when the user interaction with a view is over and the view hascompleted its animation.
getMovementFlagsForModel
Link copied to clipboard
abstract fun getMovementFlagsForModel(model: T, adapterPosition: Int): Int
Should return a composite flag which defines the enabled move directions in each state(idle, swiping, dragging) for the given model.
onDragReleased
Link copied to clipboard
abstract fun onDragReleased(model: T, itemView: View)
Called after onDragStarted when the view being dragged isreleased.
onDragStarted
Link copied to clipboard
abstract fun onDragStarted(model: T, itemView: View, adapterPosition: Int)
Called when the view switches from an idle state to a dragged state, as the user begins a draginteraction with it.
onModelMoved
Link copied to clipboard
abstract fun onModelMoved(fromPosition: Int, toPosition: Int, modelBeingMoved: T, itemView: View)
Called after onDragStarted when the dragged view is dropped toa new position.

Inheritors

EpoxyTouchHelper
Link copied to clipboard
EpoxyModelTouchCallback
Link copied to clipboard