-
public interface UndoHelper.OnActionListener
-
-
Method Summary
Modifier and Type Method Description abstract voidonActionCanceled(int action, List<Integer> positions)Called when Undo event is triggered. abstract voidonActionConfirmed(int action, int event)Called when Undo timeout is over and action must be committed in the user Database. -
-
Method Detail
-
onActionCanceled
abstract void onActionCanceled(int action, List<Integer> positions)
Called when Undo event is triggered. Perform custom action after restoration.
Usually for a delete restoration you should call restoreDeletedItems.
-
onActionConfirmed
abstract void onActionConfirmed(int action, int event)
Called when Undo timeout is over and action must be committed in the user Database.
Due to Java Generic, it's too complicated and not well manageable if we pass the
{@code List}object.So, to get deleted items, use getDeletedItems from theimplementation of this method.
-
-
-
-