iink SDK on Device

Can you erase an instance from the undo stack?

It's sort of just as the title says: Are you able to delete instances from the undo / redo stack?


Hi Pollyruhnke,


The undo/redo mechanism is documented in this section of the documentation:


https://developer.myscript.com/docs/interactive-ink/3.1/android/advanced/combined-undo-redo-stacks/#conceptual-undoredo-stack


Best regards,


Gwenaëlle

I've looked there, but there isn't anything about deleting an instance from the stack


Hello,


I am not sure to understand what you mean by deleting an instance, and to which instance you are referring to.

Please, take a look at our Demo sample and play with it. It will help you understand how undo/redo is working.


If your question is related to object lifecycle, take a look at this section: https://developer.myscript.com/docs/interactive-ink/3.1/android/fundamentals/storage/#objects-lifecycle


Best regards,


Gwenaëlle




I have looked there as well. I mean that, when content changes, it somehow pushes onto the undo/redo stack, and I want to bypass that action for something. I don't wish for the user to undo for that instance if that makes sense, (but still have the prior undos). So what I am asking is: can i bypass the undo/redo stack during specific operations 

Login or Signup to post a comment