Class PdfActivityConfiguration

    • Constructor Detail

      • PdfActivityConfiguration

        PdfActivityConfiguration()
    • Method Detail

      • getLayout

        @LayoutRes() abstract int getLayout()

        Returns the id for the layout used by the launched activity, defaults to pspdf__pdf_activity..

        Returns:

        Layout resource used by the launched activity.

      • getTheme

        @StyleRes() abstract int getTheme()

        Returns theme resource used to override default theme of the launched activity.

        Returns:

        Theme resource id used by the launched activity.

      • getDarkTheme

        @StyleRes() abstract int getDarkTheme()

        Returns theme resource used to override dark theme of the launched activity.

        Returns:

        Theme resource id used by the launched activity in the night mode.

      • isImmersiveMode

         abstract boolean isImmersiveMode()

        Indicates whether the immersive mode is activated or not.

        Returns:

        true if immersive mode activated, false otherwise.

      • isShowPageNumberOverlay

         abstract boolean isShowPageNumberOverlay()

        Indicates whether the page number overlay is set to show or not.

        Returns:

        true if the page number overlay is set to show, false otherwise.

      • isSignatureButtonPositionForcedInMainToolbar

         abstract boolean isSignatureButtonPositionForcedInMainToolbar()

        Indicates whether the signature button position is forced in the main toolbar or not. The button's visibility in the main toolbar defaults to false when the license uses Annotation Editing, as normally the annotation signature creation can be accessed via the Annotation Creation Toolbar. For the special case where the license includes Electronic Signatures without Annotation Editing, the signature button will be included in the main toolbar rather than in the Annotation Creation Toolbar.

        Returns:

        true when the signature button position is forced in the main toolbar.

      • isShowDocumentTitleOverlayEnabled

         abstract boolean isShowDocumentTitleOverlayEnabled()

        Indicates whether the document title overlay is set to show or not.

        Returns:

        true if the document title overlay is set to show, false otherwise.

      • isShowNavigationButtonsEnabled

         abstract boolean isShowNavigationButtonsEnabled()

        Indicates whether the navigation buttons are set to show or not.

        Returns:

        true if the navigation buttons are set to show, false otherwise.

      • isThumbnailGridEnabled

         abstract boolean isThumbnailGridEnabled()

        Indicates whether the thumbnail grid is enabled or not.

        Returns:

        true if thumbnail grid is enabled, false otherwise.

      • isDocumentEditorEnabled

         abstract boolean isDocumentEditorEnabled()

        Indicates whether the document editor is enabled or not.

        Returns:

        true if document editor is enabled, false otherwise.

      • isSearchEnabled

         abstract boolean isSearchEnabled()

        Indicates whether the search is enabled or not.

        Returns:

        true if search is enabled, false otherwise.

      • isSettingsItemEnabled

         abstract boolean isSettingsItemEnabled()

        Indicates whether the settings menu item is shown or not.

        Returns:

        true if settings menu item is enabled, false otherwise.

      • isPrintingEnabled

         abstract boolean isPrintingEnabled()

        Indicates whether the printing support is enabled or not. Enabled by default.

        Returns:

        true if printing is enabled, false otherwise.

      • hideUserInterfaceWhenCreatingAnnotations

         abstract boolean hideUserInterfaceWhenCreatingAnnotations()

        Returns whether user interface controls should be hidden when annotation creation toolbar is in vertical position (left/right).

        Returns:

        true when user interface should be hidden when showing vertical annotation creation toolbar.

      • isAnnotationListEnabled

         abstract boolean isAnnotationListEnabled()

        Indicates whether the list of annotations is enabled or not.

        Returns:

        true if annotation list is enabled, false otherwise.

      • isAnnotationListReorderingEnabled

         abstract boolean isAnnotationListReorderingEnabled()

        Indicates whether reordering annotations in the annotation list is enabled.

        Returns:

        true if reordering annotations in the annotation list is enabled, false otherwise.

      • getListedAnnotationTypes

         abstract EnumSet<AnnotationType> getListedAnnotationTypes()

        Returns a set of annotation types to be displayed in the annotation list.

        Returns:

        Annotation types to be displayed if the list is enabled.

      • isOutlineEnabled

         abstract boolean isOutlineEnabled()

        Indicates whether the outline is enabled or not.

        Returns:

        true if outline enabled, false otherwise.

      • isEmbeddedFilesViewEnabled

         abstract boolean isEmbeddedFilesViewEnabled()

        Indicates whether the embedded files view is enabled or not.

        Returns:

        true if the embedded files view enabled, false otherwise.

      • isBookmarkListEnabled

         abstract boolean isBookmarkListEnabled()

        Indicates whether the list of bookmarks is enabled or not.

        Returns:

        true if bookmark list is enabled, false otherwise.

      • isBookmarkEditingEnabled

         abstract boolean isBookmarkEditingEnabled()

        Indicates whether the bookmarks can be edited or not.

        Returns:

        true if bookmark list allows editing of bookmarks, false otherwise.

      • isDocumentInfoViewEnabled

         abstract boolean isDocumentInfoViewEnabled()

        Indicates whether the document info view is enabled or not.

        Returns:

        true if document info view is enabled, false otherwise.

      • isDocumentInfoViewSeparated

         abstract boolean isDocumentInfoViewSeparated()

        Indicates whether the document info view is a separate window, or displayed as a tab in the outline

        Returns:

        true if document info view is separate, false otherwise.

      • page

        @IntRange(from = 0) abstract int page()

        Returns the 0-indexed page number at which the document will be initially displayed.

        Returns:

        Page at which to start the document.

      • getSearchConfiguration

        @Nullable() abstract SearchConfiguration getSearchConfiguration()

        Returns the search configuration applied to the search views.

        Returns:

        Search configuration for search views, holding properties used for performing search actions.

      • isAnnotationNoteHintingEnabled

         abstract boolean isAnnotationNoteHintingEnabled()

        Indicates whether to show visual indicators for annotations that have annotation notes.

        Returns:

        true when annotation notes hints are enabled, false otherwise.

      • isVolumeButtonsNavigationEnabled

         abstract boolean isVolumeButtonsNavigationEnabled()

        Indicates whether to use volume buttons for navigation between document pages.

        Returns:

        true when volume buttons will be used for navigation between document pages, false otherwise.

      • isRedactionUiEnabled

         abstract boolean isRedactionUiEnabled()

        Indicates whether we show the UI to apply redactions when there are in the document.

        Returns:

        true when the redaction UI should be displayed when false if it should not be displayed.

      • isReaderViewEnabled

         abstract boolean isReaderViewEnabled()

        Indicates whether we display the reader view and its action icon in the main toolbar.

        Returns:

        true when the reader view should be displayed, false when it should not be displayed.