epoxy-adapter / com.airbnb.epoxy / EpoxySwipeCallback / onSwipeStarted

onSwipeStarted

abstract fun onSwipeStarted(model: T, itemView: View!, adapterPosition: Int): Unit

Called when the view switches from an idle state to a swiped state, as the user begins a swipe interaction with it. You can use this callback to modify the view to indicate it is being swiped.

This is the first callback made in the lifecycle of a swipe event.

Parameters

model - T: The model representing the view that is being swiped

itemView - View!: The view that is being swiped

adapterPosition - Int: The adapter position of the model