Pdf Document Checkpointer
Handles documents checkpoint, cleaning and saving strategy.
Functions
Link copied to clipboard
Checks if a checkpoint for the document exists.
Link copied to clipboard
Deletes all checkpoints stored on-disk.
Link copied to clipboard
Deletes the checkpoint if exists.
Link copied to clipboard
Asynchronously deletes the checkpoint.
Link copied to clipboard
Logs that the saving succeeded and resets the dirty status of the document to false.
Link copied to clipboard
Returns
true
if the checkpoint is supported.Link copied to clipboard
Called when annotation has been created.
Link copied to clipboard
Called when existing annotation has been removed.
Link copied to clipboard
Called when existing annotation has changed.
Link copied to clipboard
open fun onAnnotationZOrderChanged(pageIndex: Int, @NonNull oldOrder: List<Annotation>, @NonNull newOrder: List<Annotation>)
Called when the z-order of annotations has changed on a specified page.
Link copied to clipboard
Saves the checkpoint persistently on the local storage.
Link copied to clipboard
Saves the checkpoint asynchronously.
Link copied to clipboard
open fun setCheckpointPath(@NonNull context: Context, @NonNull documentSource: DocumentSource, @NonNull checkpointFolder: String): List<DocumentSource>
Creates a local path for saving the checkpoint file.