Epoxy Swipe Callback
interface EpoxySwipeCallback<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
onSwipeCompleted
Link copied to clipboard
abstract fun onSwipeCompleted(model: T, itemView: View, position: Int, direction: Int)
Content copied to clipboard
Called after onSwipeReleased if the swipe surpassed the threshold tobe considered a full swipe.
onSwipeProgressChanged
Link copied to clipboard
abstract fun onSwipeProgressChanged(model: T, itemView: View, swipeProgress: Float, canvas: Canvas)
Content copied to clipboard
Once a view has begun swiping with onSwipeStarted it willreceive this callback as the swipe distance changes.
onSwipeReleased
Link copied to clipboard
onSwipeStarted
Link copied to clipboard
abstract fun onSwipeStarted(model: T, itemView: View, adapterPosition: Int)
Content copied to clipboard