Annotation Modification

Thank Shirley

Shirley same as I tried AnnotationSyncingListener in onTabDocumentLoaded method.
Now I am getting a issue after using of annotation presetbar is disappearing and got this line in logcat - “PDFNet: Incremental save is not supported in admin-undo-own collaboration mode”.

Code -

override fun onTabDocumentLoaded(p0: String?) {

mPdfViewCtrlTabHostFragment.currentPdfViewCtrlFragment.toolManager.enableAnnotManager(
“12345-67890-ABCD-MuuEN9IEDZK_tIFkvKL”,
AnnotSyncingListner()
)
}

class AnnotSyncingListner : AnnotationSyncingListener {

override fun onLocalChange(action: String?, xfdfCommand: String?, xfdfJSON: String?) {
    Log.e(
        "Annot_Sync",
        "Action--->$action\n xfdfCommand---> $xfdfCommand\n xfdfJSON--->   $xfdfJSON"
    )
}

}