Pdf Activity
Activity with fully integrated views and behaviour. Can be invoked by the simple helper methods showDocument and showDocument. For more advanced customization use to generate an Intent with proper parameters.
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
Id of the document infoview menu item.
Link copied to clipboard
Id of the edit-annotations menu item.
Link copied to clipboard
Id of the edit-content menu item.
Link copied to clipboard
Id of the outline view menu item.
Link copied to clipboard
Id of the reader view menu item.
Link copied to clipboard
Id of the search menu item.
Link copied to clipboard
Id of the settings menu item.
Link copied to clipboard
Id of the share menu item.
Link copied to clipboard
Id of the signature menu item.
Link copied to clipboard
Id of the thumbnail grid menu item.
Functions
Link copied to clipboard
Link copied to clipboard
Returns the PdfActivityConfiguration that was provided while launching this activity.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when the user taps / clicks on the document, not the page itself but on the side (if visible).
Link copied to clipboard
Called when document is successfully loaded and the document view has been laid out.
Link copied to clipboard
Called if document loading has failed.
Link copied to clipboard
open fun onDocumentSave(@NonNull document: PdfDocument, @NonNull saveOptions: DocumentSaveOptions): Boolean
Called before document will be saved.
Link copied to clipboard
Called if document saving has been cancelled.
Link copied to clipboard
Called after the document has been saved.
Link copied to clipboard
Called if document saving has failed.
Link copied to clipboard
open fun onDocumentZoomed(@NonNull document: PdfDocument, @IntRange(from = 0 ) pageIndex: Int, scaleFactor: Float)
Called when a user zooms a document.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when user scrolled to a new page.
Link copied to clipboard
open fun onPageClick(@NonNull document: PdfDocument, @IntRange(from = 0 ) pageIndex: Int, @Nullable event: MotionEvent, @Nullable pagePosition: PointF, @Nullable clickedAnnotation: Annotation): Boolean
Called when user taps / clicks on the page.
Link copied to clipboard
Called when content of page with pageIndex has changed (for example due to annotation or form field being updated).
Link copied to clipboard
Link copied to clipboard
open fun onSetActivityTitle(@NonNull configuration: PdfActivityConfiguration, @Nullable document: PdfDocument)
Called when activity title must be set - before and after document was loaded.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when user interface visibility have changed.
Link copied to clipboard
Link copied to clipboard
Replaces activity configuration.
Link copied to clipboard
open fun showDocument(@NonNull context: Context, @NonNull documentUri: Uri, @Nullable configuration: PdfActivityConfiguration)
open fun showDocument(@NonNull context: Context, @NonNull documentUri: Uri, @Nullable password: String, @Nullable configuration: PdfActivityConfiguration)
Opens a new PdfActivity displaying a passed document.
Link copied to clipboard
open fun showImage(@NonNull context: Context, @NonNull imageUri: Uri, @Nullable configuration: PdfActivityConfiguration)
Opens a new PdfActivity displaying a passed image document.