Pdf Ui
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
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
Re-runs the ToolbarItemsProvider and refreshes the main-toolbar items — the declarative analogue of
invalidateOptionsMenu().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
Checks whether the inline search bar is currently open.
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
Called when a device configuration change occurs.
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
Replaces activity configuration.
Link copied to clipboard
open fun setCreationInspectorController(@NonNull creationInspectorController: AnnotatingInspectorController)
Sets controller of the annotation inspector used when creating annotations.
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 setEditingInspectorController(@NonNull editingInspectorController: AnnotatingInspectorController)
Sets controller of the annotation inspector used when editing annotations.
Link copied to clipboard
Sets the main-toolbar item click listener — the replacement for intercepting
onOptionsItemSelected.Link copied to clipboard
Sets the handler for taps on the main toolbar's navigation icon — the replacement for
Toolbar.setNavigationOnClickListener.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
Customizes the main-toolbar items declaratively — the replacement for the removed
onCreateOptionsMenu/onPrepareOptionsMenu/OnMenuItemsGenerateListener path.Link copied to clipboard
open fun setToolbarNavigationIcon(@Nullable icon: ToolbarIcon, @Nullable contentDescription: String)
Sets the main toolbar's navigation (up / back) icon and its accessibility label — the replacement for
Toolbar.setNavigationIcon on the removed View toolbar.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
Shows the "Save As" dialog, letting the user choose a name and a page range for a copy of the current document and then pick where it is written.
Link copied to clipboard
Animates user interface controls into view.
Link copied to clipboard
Toggles the visibility of user interface controls.