public interface UndoCallback extends OnDismissCallback
| Modifier and Type | Method and Description |
|---|---|
View |
getPrimaryView(View view)
Returns the primary
View contained in given View. |
View |
getUndoView(View view)
Returns the undo
View contained in given View. |
void |
onDismiss(View view,
int position)
Called when the user has definitively dismissed an item.
Do NOT remove the item from the adapter here! Instead, do this in OnDismissCallback.onDismiss(android.view.ViewGroup, int[]). |
void |
onUndo(View view,
int position)
Called when the undo button is clicked for given position, and the primary
View is shown. |
void |
onUndoShown(View view,
int position)
Called when the undo
View is shown for given position. |
onDismissView getPrimaryView(View view)
View contained in given View.view - the parent View, which contains both the primary and the undo Views.View getUndoView(View view)
View contained in given View.view - the parent View, which contains both the primary and the undo Views.void onUndoShown(View view, int position)
View is shown for given position.view - the parent View, which contains both the primary and the undo Views.position - the position for which the undo View is shown.void onUndo(View view, int position)
View is shown.view - the parent View, which contains both the primary and the undo Views.position - the position for which the button has been clicked.void onDismiss(View view, int position)
OnDismissCallback.onDismiss(android.view.ViewGroup, int[]).view - the parent View, which contains both the primary and the undo Views.position - the position of the item that is dismissed.