public class SwipeActionsBehavior.SwipeActionEvent extends Object
View
instance
being swiped, as well as whether the swipe threshold has been passed.Modifier and Type | Method and Description |
---|---|
int |
currentOffset()
Returns an integer representing the current offset of the swiped view.
|
boolean |
isThresholdPassed()
Returns a boolean value determining whether the use has passed the swipe threshold while
swiping.
|
View |
mainView()
Returns an instance of the
View class representing the main content of the item being swiped. |
int |
swipedItemPosition()
Returns the index of the item being swiped in the source collection.
|
int |
swipePositionWhenReleased()
Returns the swiped item's offset at the moment the user lifted their finger from the screen.
|
View |
swipeView()
Returns an instance of the
View class representing the swipe content of the item that is being swiped. |
public int swipePositionWhenReleased()
public int swipedItemPosition()
public View swipeView()
View
class representing the swipe content of the item that is being swiped.View
representing the swipe content of the item being swiped.public View mainView()
View
class representing the main content of the item being swiped.View
representing the main content of the item being swiped.public int currentOffset()
public boolean isThresholdPassed()
true
if the threshold has been passed; false
otherwise.