Pdf Ui
interface PdfUi : PdfActivityListener, OnMenuItemsGenerateListener, PdfActivityMenu.OnPrepareDefaultMenuItemListener, PdfActivityComponentsApi
The API that is shared between PdfActivity and PdfUiFragment.
Inheritors
Properties
Link copied to clipboard
Parameter for setScreenTimeout used for restoring screen timeout to its default system value.
Link copied to clipboard
Parameter for setScreenTimeout used for disabling screen timeout.
Functions
Link copied to clipboard
open fun addPropertyInspectorLifecycleListener(@NonNull lifecycleListener: PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener)
Adds the listener for lifecycle changes of the PropertyInspector as it goes through the PropertyInspectorCoordinatorLayout - preparing, displaying, removing.
Link copied to clipboard
Returns the PdfActivityConfiguration that was provided while launching this pdf UI.
Link copied to clipboard
Returns the PdfDocument that is loaded into this pdf UI, or
null
if no document has been loaded yet.Link copied to clipboard
Returns the coordinator responsible for displaying documents and switching between multiple loaded documents.
Link copied to clipboard
Simply gets the current PdfUiImpl
Link copied to clipboard
Returns current page index set on the document.
Link copied to clipboard
Returns the PdfFragment that is used to show the document.
Link copied to clipboard
Returns property inspector coordinator layout.
Link copied to clipboard
Returns object with inflated PSPDFKit views.
Link copied to clipboard
Gets screen timeout in milliseconds that has been added to the predefined system timeout, TIMEOUT_DEFAULT or TIMEOUT_INFINITE.
Link copied to clipboard
Gets page sibling index (usable in double page mode).
Link copied to clipboard
Return current user interface view mode that activity is using.
Link copied to clipboard
Animates user interface controls out of view.
Link copied to clipboard
Indicates whether interaction with the document is enabled right now.
Link copied to clipboard
Indicates whether the displayed document is an image or not.
Link copied to clipboard
Indicates whether UI is enabled right now.
Link copied to clipboard
Checks whether user interface controls are currently visible.
Link copied to clipboard
Link copied to clipboard
open fun removePropertyInspectorLifecycleListener(@NonNull lifecycleListener: PropertyInspectorCoordinatorLayoutController.PropertyInspectorLifecycleListener)
Removes previously registered listener for lifecycle changes of the PropertyInspector as it goes through the PropertyInspectorCoordinatorLayout - preparing, displaying, removing.
Link copied to clipboard
Returns the PdfFragment that is used to show the document.
Link copied to clipboard
open fun setAnnotationCreationInspectorController(@NonNull annotationCreationInspectorController: AnnotationCreationInspectorController)
Sets controller of the annotation inspector used when creating annotations.
Link copied to clipboard
open fun setAnnotationEditingInspectorController(@NonNull annotationEditingInspectorController: AnnotationEditingInspectorController)
Sets controller of the annotation inspector used when editing annotations.
Link copied to clipboard
Replaces activity configuration.
Link copied to clipboard
open fun setDocumentFromDataProvider(@NonNull dataProvider: DataProvider, @Nullable password: String)
Loads a new document in this activity and replaces the existing one.
Link copied to clipboard
open fun setDocumentFromDataProviders(@NonNull dataProviders: List<DataProvider>, @Nullable passwords: List<String>)
Loads a new document in this pdf UI and replaces the existing one.
Link copied to clipboard
Loads a new document in this activity and replaces the existing one.
Link copied to clipboard
Link copied to clipboard
Enables or disables interaction with the document.
Link copied to clipboard
Sets the creator for document print dialogs.
Link copied to clipboard
Sets the creator for document sharing dialogs.
Link copied to clipboard
open fun setOnContextualToolbarLifecycleListener(@Nullable lifecycleListener: ToolbarCoordinatorLayout.OnContextualToolbarLifecycleListener)
Sets the listener for lifecycle changes of the ContextualToolbar as it goes through the ToolbarCoordinatorLayout - preparing, displaying, removing.
Link copied to clipboard
open fun setOnContextualToolbarMovementListener(@Nullable movementListener: ToolbarCoordinatorLayout.OnContextualToolbarMovementListener)
Sets the listener for ContextualToolbar movements within the layout.
Link copied to clipboard
open fun setOnContextualToolbarPositionListener(@Nullable positionListener: ToolbarCoordinatorLayout.OnContextualToolbarPositionListener)
Sets the listener for ContextualToolbar position changes within the layout.
Link copied to clipboard
Sets page to be displayed in the current document.
Link copied to clipboard
Sets the provider for print options.
Link copied to clipboard
Sets screen timeout in milliseconds that will be added to the predefined system timeout (that is usually 1 minute).
Link copied to clipboard
Sets the listener for sharing menu lifecycle and click events.
Link copied to clipboard
Sets the provider for sharing options.
Link copied to clipboard
Enables or disables the user interface.
Link copied to clipboard
Sets the activity user interface view mode at a runtime.
Link copied to clipboard
Show or hide user interface controls.
Link copied to clipboard
Animates user interface controls into view.
Link copied to clipboard
Toggles the visibility of user interface controls.