Interface PdfThumbnailBarController

  • All Implemented Interfaces:

    
    public interface PdfThumbnailBarController
    
                        

    Thumbnail bar controller used to control properties and actions of scrollable and static thumbnail bar.

    • Constructor Detail

    • Method Detail

      • removeOnVisibilityChangedListener

         abstract void removeOnVisibilityChangedListener(@NonNull() OnVisibilityChangedListener listener)

        Removes a previously added visibility change listener. Upon calling this method the listener will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Adding null is not allowed,and will result in an exception.

        Parameters:
        listener - OnVisibilityChangedListener that should be removed.
      • setBackgroundColor

         abstract void setBackgroundColor(@ColorInt() int backgroundColor)

        Sets the background color for the thumbnail bar.

        Parameters:
        backgroundColor - Thumbnail bar background color.
      • getThumbnailWidth

        @IntRange(from = 1) abstract int getThumbnailWidth()

        Returns the width of the thumbnails in thumbnail bar. In the case where isUsingPageAspectRatio is true this will return the actual width of the first thumbnail.

        Returns:

        Width of thumbnails in pixels.

      • setThumbnailWidth

         abstract void setThumbnailWidth(@IntRange(from = 1) int thumbnailWidth)

        Sets the width of the thumbnails in thumbnail bar. This has no effect if isUsingPageAspectRatio is set to true.

        Parameters:
        thumbnailWidth - Width of thumbnails in pixels.
      • getThumbnailHeight

        @IntRange(from = 1) abstract int getThumbnailHeight()

        Returns the height of the thumbnails in thumbnail bar.

        Returns:

        Height of thumbnails in pixels.

      • setThumbnailHeight

         abstract void setThumbnailHeight(@IntRange(from = 1) int thumbnailHeight)

        Sets the height of the thumbnails in thumbnail bar.

        Parameters:
        thumbnailHeight - Height of thumbnails in pixels.
      • isUsingPageAspectRatio

         abstract boolean isUsingPageAspectRatio()

        Returns whether the page aspect ratio is used to determine the thumbnail width.

        Returns:

        true if the thumbnail width is calculated based on the page aspect ratio and thumbnail height, false if the thumbnail width is used as configured.

      • setUsePageAspectRatio

         abstract void setUsePageAspectRatio(boolean usePageAspectRatio)

        Configures the thumbnail bar to use the page aspect ratio to calculate the thumbnail width.

        Parameters:
        usePageAspectRatio - true to automatically calculate the thumbnail width based on the page aspect ratio and thumbnail height, false to use the configured thumbnail width.
      • getThumbnailBorderColor

        @ColorInt() abstract int getThumbnailBorderColor()

        Returns the border color for the thumbnails in the thumbnail bar.

        Returns:

        Border colors of thumbnails.

      • setThumbnailBorderColor

         abstract void setThumbnailBorderColor(@ColorInt() int borderColor)

        Sets the border color for the thumbnails in the thumbnail bar.

        Parameters:
        borderColor - Border colors of thumbnails.
      • getSelectedThumbnailBorderColor

        @ColorInt() abstract int getSelectedThumbnailBorderColor()

        Returns the border color for the selected thumbnail in the thumbnail bar.

        Returns:

        Border colors of selected thumbnail.

      • setSelectedThumbnailBorderColor

         abstract void setSelectedThumbnailBorderColor(@ColorInt() int borderColor)

        Sets the border color for the selected thumbnail in the thumbnail bar.

        Parameters:
        borderColor - Border colors of selected thumbnail.
      • isRedactionAnnotationPreviewEnabled

         abstract boolean isRedactionAnnotationPreviewEnabled()

        Returns redaction annotation preview mode, false by default.

        Returns:

        true if redaction annotation preview mode is enabled, false otherwise.

      • setRedactionAnnotationPreviewEnabled

         abstract void setRedactionAnnotationPreviewEnabled(boolean enable)

        Sets redaction annotations preview as redacted.

        Parameters:
        enable - true to show redaction annotations as redacted, false to show them as marks.