PdfScrollableThumbnailBar

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
The background color of the thumbnail bar.
Link copied to clipboard
@get:IntRange(from = 1)
open var thumbnailHeight: Int
The height of each thumbnail in pixels.
Link copied to clipboard
@get:IntRange(from = 1)
open var thumbnailWidth: Int
The width of each thumbnail in pixels.

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
Returns the document listener that should be registered to receive document events.
Link copied to clipboard
open fun getItemCount(): Int
Returns the number of page thumbnails in the thumbnail bar.
Link copied to clipboard
Returns the current type of this view.
Link copied to clipboard
open fun getSelectedPage(): Int
Returns the currently selected page index in the thumbnail bar.
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
Checks whether the thumbnail bar background is transparent.
Link copied to clipboard
open fun isDisplayed(): Boolean
Returns whether the thumbnail bar is currently displayed.
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()