public class UndoHelper<Item extends IItem>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
UndoHelper.UndoListener<Item extends IItem> |
| Constructor and Description |
|---|
UndoHelper(FastAdapter adapter,
UndoHelper.UndoListener undoListener)
Constructor to create the UndoHelper
|
| Modifier and Type | Method and Description |
|---|---|
android.support.design.widget.Snackbar |
remove(android.view.View view,
java.lang.String text,
java.lang.String actionText,
int duration,
java.util.Set<java.lang.Integer> positions)
removes items from the ItemAdapter
|
public UndoHelper(FastAdapter adapter, UndoHelper.UndoListener undoListener)
adapter - the root FastAdapterundoListener - the listener which gets called when an item was really removedpublic android.support.design.widget.Snackbar remove(android.view.View view,
java.lang.String text,
java.lang.String actionText,
int duration,
java.util.Set<java.lang.Integer> positions)
view - the view which will host the SnackBartext - the text to show on the SnackBaractionText - the text to show for the Undo Actionpositions - the positions where the items were removed