public static interface ItemSwipeHelper.OnSwipeListener
RecyclerView.ViewHolder instance.| Modifier and Type | Method and Description |
|---|---|
void |
onSwipeCanceled(ItemSwipeHelper swipeHelper,
RecyclerView.ViewHolder viewHolder)
Invoked whenever swipe gesture is canceled for the given viewHolder.
|
void |
onSwipeFinished(ItemSwipeHelper swipeHelper,
RecyclerView.ViewHolder viewHolder,
int direction)
Invoked whenever swipe gesture is finished for the given viewHolder.
|
void |
onSwipeStarted(ItemSwipeHelper swipeHelper,
RecyclerView.ViewHolder viewHolder)
Invoked whenever swipe gesture is started for the given viewHolder.
|
void onSwipeStarted(@NonNull ItemSwipeHelper swipeHelper, @NonNull RecyclerView.ViewHolder viewHolder)
swipeHelper - The item helper controlling the swipe gesture for the view holder.viewHolder - The view holder for which has been the swipe gesture started.onSwipeFinished(ItemSwipeHelper, RecyclerView.ViewHolder, int)void onSwipeFinished(@NonNull ItemSwipeHelper swipeHelper, @NonNull RecyclerView.ViewHolder viewHolder, int direction)
swipeHelper - The item helper controlling the swipe gesture for the view holder.viewHolder - The view holder for which has been the swipe gesture finished.direction - The direction in which has been the swipe gesture finished. One of
directions defined by @Direction annotation.onSwipeStarted(ItemSwipeHelper, RecyclerView.ViewHolder)void onSwipeCanceled(@NonNull ItemSwipeHelper swipeHelper, @NonNull RecyclerView.ViewHolder viewHolder)
swipeHelper - The item helper controlling the swipe gesture for the view holder.viewHolder - The view holder for which has been the swipe gesture canceled.