abstract fun onSwipeProgressChanged(model: T, itemView: View!, swipeProgress: Float, canvas: Canvas!): Unit
Once a view has begun swiping with #onSwipeStarted(EpoxyModel, View, int) it will receive this callback as the swipe distance changes. This can be called multiple times as the swipe interaction progresses.
model - T: The model representing the view that is being swiped
itemView - View!: The view that is being swiped
swipeProgress - Float: A float from -1 to 1 representing the percentage that the view has been swiped relative to its width. This will be positive if the view is being swiped to the right and negative if it is swiped to the left. For example,
canvas - Canvas!: The canvas on which RecyclerView is drawing its children. You can draw to this to support custom swipe animations.