restoreFromState

open fun restoreFromState(@NonNull fragment: PdfFragment, @NonNull onEditRecordedListener: OnEditRecordedListener): AnnotationEditor

Restore and retrieve a previously created annotation editor instance. Call this method as soon as the document has been loaded, to restore any previously created annotation editor from the saved instance state. This method will return null if no editor was restored.

Return

The restored annotation editor, or null if no editor was restored.

Parameters

fragment

PdfFragment instance.

onEditRecordedListener

The listener used to report edits.