PdfScrollableThumbnailBar

Scrollable bar showing thumbnails of pages, with larger images.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)

Properties

Link copied to clipboard
Link copied to clipboard
@get:IntRange(from = 1)
open var thumbnailHeight: Int
Link copied to clipboard
@get:IntRange(from = 1)
open var thumbnailWidth: Int

Functions

Link copied to clipboard
Register a listener that would like to receive visibility change events.
Link copied to clipboard
open fun clearDocument()
Called by the activity when the view should unbind the previously set document.
Link copied to clipboard
Link copied to clipboard
open fun getItemCount(): Int
Link copied to clipboard
Returns the current type of this view.
Link copied to clipboard
open fun getSelectedPage(): Int
Link copied to clipboard
Returns the border color for the selected thumbnail in the thumbnail bar.
Link copied to clipboard
Returns the border color for the thumbnails in the thumbnail bar.
Link copied to clipboard
open fun hide()
Link copied to clipboard
Link copied to clipboard
open fun isDisplayed(): Boolean
Called when the activity needs to know the visibility of this view.
Link copied to clipboard
Returns redaction annotation preview mode, false by default.
Link copied to clipboard
Returns whether the page aspect ratio is used to determine the thumbnail width.
Link copied to clipboard
open fun onPageChanged(@NonNull document: PdfDocument, pageIndex: Int)
Called when user scrolled to a new page.
Link copied to clipboard
open fun onPageUpdated(@NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int)
Called when content of page with pageIndex has changed (for example due to annotation or form field being updated).
Link copied to clipboard
open fun onThumbnailChanged(@NonNull view: View, @IntRange(from = 0) pageIndex: Int)
Called whenever the user touched on a thumbnail, selecting a different page.
Link copied to clipboard
Unregister a previously registered listener that no longer wants to receive visibility change events.
Link copied to clipboard
open fun setDocument(@NonNull document: PdfDocument, @NonNull configuration: PdfConfiguration)
Called when the document has been loaded and is going to be displayed.
Link copied to clipboard
open fun setDrawableProviders(drawableProviders: List<PdfDrawableProvider>)
Sets PdfDrawableProviders to provide custom PdfDrawable to be displayed in a thumbnail bar page items.
Link copied to clipboard
Sets a listener to be notified of page changing events.
Link copied to clipboard
Sets redaction annotations preview as redacted.
Link copied to clipboard
Sets the border color for the selected thumbnail in the thumbnail bar.
Link copied to clipboard
open fun setThumbnailBorderColor(@ColorInt borderColor: Int)
Sets the border color for the thumbnails in the thumbnail bar.
Link copied to clipboard
open fun setUsePageAspectRatio(usePageAspectRatio: Boolean)
Configures the thumbnail bar to use the page aspect ratio to calculate the thumbnail width.
Link copied to clipboard
open fun show()