PdfUi

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
val TIMEOUT_INFINITE: Long = 9223372036854775807
Parameter for setScreenTimeout used for disabling screen timeout.

Functions

Link copied to clipboard
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
@IntRange(from = "-1")
open fun getPageIndex(): Int
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
@IntRange(from = "-1")
open fun getSiblingPageIndex(@IntRange(from = 0) pageIndex: Int): Int
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
open fun onConfigurationChanged(@NonNull newConfiguration: Configuration)
Link copied to clipboard
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
Sets controller of the annotation inspector used when creating annotations.
Link copied to clipboard
Sets controller of the annotation inspector used when editing annotations.
Link copied to clipboard
abstract fun setConfiguration(@NonNull configuration: PdfActivityConfiguration)
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
open fun setDocumentFromUri(@NonNull documentUri: Uri, @Nullable password: String)
Loads a new document in this activity and replaces the existing one.
Link copied to clipboard
open fun setDocumentFromUris(@NonNull documentUris: List<Uri>, @Nullable passwords: List<String>)
Loads a new document in this activity and replaces the existing one.
Link copied to clipboard
open fun setDocumentInteractionEnabled(documentInteractionEnabled: Boolean)
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
Sets the listener for lifecycle changes of the ContextualToolbar as it goes through the ToolbarCoordinatorLayout - preparing, displaying, removing.
Link copied to clipboard
Sets the listener for ContextualToolbar movements within the layout.
Link copied to clipboard
Sets the listener for ContextualToolbar position changes within the layout.
Link copied to clipboard
open fun setPageIndex(@IntRange(from = 0) pageIndex: Int)
open fun setPageIndex(@IntRange(from = 0) pageIndex: Int, animate: Boolean)
Sets page to be displayed in the current document.
Link copied to clipboard
Sets the provider for print options.
Link copied to clipboard
open fun setScreenTimeout(screenTimeoutMillis: Long)
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
open fun setUserInterfaceEnabled(userInterfaceEnabled: Boolean)
Enables or disables the user interface.
Link copied to clipboard
open fun setUserInterfaceViewMode(@NonNull userInterfaceViewMode: UserInterfaceViewMode)
Sets the activity user interface view mode at a runtime.
Link copied to clipboard
open fun setUserInterfaceVisible(show: Boolean, animate: Boolean)
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.