public static interface SwipeExecuteBehavior.SwipeExecuteListener
Modifier and Type | Method and Description |
---|---|
void |
onExecuteFinished(int position)
Called when the swipe content is dismissed.
|
void |
onSwipeEnded(int position,
int finalOffset)
Called when swipe gesture ends.
|
void |
onSwipeProgressChanged(int position,
int currentOffset,
View swipeContent)
Called when the progress of the swipe for the item at the specified position changes.
|
void |
onSwipeStarted(int position)
Called when the swipe gesture starts for the item at the specified position.
|
void onSwipeStarted(int position)
position
- the position of the item that is swiped.void onSwipeProgressChanged(int position, int currentOffset, View swipeContent)
position
- the position of the item that is swiped.currentOffset
- the current offset from the start that the swiped item has made.swipeContent
- the swipe content that is shown behind the item.void onSwipeEnded(int position, int finalOffset)
position
- the position of the item that is swiped.finalOffset
- the final offset from the start that the swiped item has made.void onExecuteFinished(int position)
position
- the position of the item that is swiped.