Pdf Thumbnail Bar
Bar showing thumbnails of pages for quick selection. This view extends AbstractComposeView and uses Jetpack Compose for rendering the static thumbnail bar modes (FLOATING and PINNED). For SCROLLABLE mode, it wraps the existing PdfScrollableThumbnailBar implementation.
To select the thumbnail bar mode/style, use setThumbnailBarMode method.
Constructors
Types
Listener for receiving page changes caused by the user touching or dragging the PdfThumbnailBar.
Properties
The document listener for the thumbnail bar.
Returns whether the thumbnail bar background is transparent.
Whether the redaction annotation preview mode is enabled or not. When true, redaction annotations are shown as redacted. When false, redaction annotations are shown as marks.
Functions
Adds a PdfDrawableProvider to be managed by this object. If the provider has been added previously, this method will be a no-op. Adding null is not allowed, and will result in an exception.
Register a listener that would like to receive visibility change events. Whenever the visibility of a managed PSPDFView changes, all registered listeners will be notified.
Called by the activity when the view should unbind the previously set document. This may be called in low-memory situations or prior to re-binding another document.
Compose content that renders the thumbnail bar based on the current ThumbnailBarMode.
Dispatches touch events, consuming all events when the view is disabled.
Returns the current type of this view.
Returns the border color for the selected thumbnail in the thumbnail bar.
Returns the current thumbnail bar mode.
Returns the border color for the thumbnails in the thumbnail bar.
Returns the height of the thumbnails in thumbnail bar.
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.
No-op for PdfThumbnailBar.
Called when the activity needs to know the visibility of this view. Returns true if this view is visible, otherwise returns false.
Removes a previously added PdfDrawableProvider. If the provider hasn't been added previously, this method will be a no-op.
Unregister a previously registered listener that no longer wants to receive visibility change events.
Sets the background color for the thumbnail bar.
Called when the document has been loaded and is going to be displayed. This has to be called on the main thread.
Register a listener that is notified whenever the user changed the page on the thumbnail bar.
Sets the border color for the selected thumbnail in the thumbnail bar.
Sets thumbnail bar mode whether static or scrollable.
Sets the border color for the thumbnails in the thumbnail bar.
Sets the height of the thumbnails in thumbnail bar.
Sets the width of the thumbnails in thumbnail bar. This has no effect if isUsingPageAspectRatio is set to true.
No-op for PdfThumbnailBar.