on Swipe State Changed
abstract fun <T : View?, RevealableListItem?> onSwipeStateChanged(newState: Int, @NonNull activeRevealableListItem: T, revealGravity: Int)
Called when the swipe state of the SwipeableListItem changes.
Parameters
new State
The new state. This will be one of STATE_DRAGGING, STATE_SETTLING, STATE_CLOSED, STATE_OPEN, or STATE_SWIPE_PRIMARY_ACTION.
active Revealable List Item
The associated RevealableListItem view that is being revealed when swiped. If the new state is STATE_CLOSED, this will be the last active RevealableListItem.
reveal Gravity
The RevealGravity of the revealableListItem.