Epoxy Drag Callback
interface EpoxyDragCallback<T : EpoxyModel?> : BaseEpoxyTouchCallback<T>
Content copied to clipboard
For use with EpoxyModelTouchCallback
Functions
getMovementFlagsForModel
Link copied to clipboard
abstract fun getMovementFlagsForModel(model: T, adapterPosition: Int): Int
Content copied to clipboard
onDragReleased
Link copied to clipboard
onDragStarted
Link copied to clipboard
abstract fun onDragStarted(model: T, itemView: View, adapterPosition: Int)
Content copied to clipboard
onModelMoved
Link copied to clipboard
abstract fun onModelMoved(fromPosition: Int, toPosition: Int, modelBeingMoved: T, itemView: View)
Content copied to clipboard
Called after onDragStarted when the dragged view is dropped toa new position.