Instant Pdf Fragment
Fragment that actually displays instant PDF document. It contains only the document view without any additional views like outline, thumbnail bar, search, etc. Meant to be used if you want full custom implementation and design.
Types
Companion object containing factory methods and constants for InstantPdfFragment.
Functions
Adds a InstantDocumentListener for instant document events. Listeners added with this method will be removed automatically in .onDetach. If the listener has already been added previously, this method will be a no-op. Adding null is not allowed, and will result in an exception.
Returns manager for annotation preferences.
Gets the loaded document.
Returns this fragment's undo manager instance for performing undo/redo operations of annotation edits.
Called when authentication with Instant Server (Nutrient Document Engine) has failed.
Called when authentication with Instant Server (Nutrient Document Engine) has successfully finished.
Creates and returns the view hierarchy associated with the fragment.
Called when InstantPdfDocument has detected data corruption.
Called when InstantPdfDocument becomes invalid. Any future instant operations on this document will fail.
Called when document is successfully loaded and the document view has been laid out. This has to be called on the main thread.
Called when the document changes its state.
Called when annotation sync has been finished with an error.
Called when annotation sync has been finished successfully.
Called when annotation sync has been started.
Removes a previously added InstantDocumentListener. After calling this method the listener will stop receiving instant document events. If the listener has not been added previously, this method will be a no-op. Passing null is not allowed, and will result in an exception.
Sets the custom source for the PDF file.
Sets the custom sources for the PDF file.
Sets whether the fragment should automatically handle certain critical Instant errors.
Controls whether to listen to server changes for loaded document when the fragment is resumed.
Sets annotation types that should be rendered as overlays.
Starts syncing annotations back to Instant Server (Nutrient Document Engine).