Suppose we are doing rectangle annotation and we have selected rectangle and after that we are making multiple rectangle and then we are clicking the done button or cancel button.
My query is whenever user makes one rectangle then they should either click on done or cancel .
They should not make another rectangle and same for other annotation as well.
Once the done button or cancel button is clicked now they should be able to make rectangle again or any other annotation.
If you want to force user to click done or cancel on every annot rect drawn you should add this line at the beginning of OnRectTouchBegin, OnRectTouchMove and OnRectTouchEnd methods in PDFLayoutView class: