ThumbnailAdapter

Recycler adapter for creating thumbnail views inside the PdfScrollableThumbnailBar.

Types

Link copied to clipboard
Listener for receiving page changes caused by the user touching the ThumbnailAdapter.

Properties

Link copied to clipboard
@get:IntRange(from = 1)
open var thumbnailHeight: Int
The height of the thumbnails in pixels.
Link copied to clipboard
@get:IntRange(from = 1)
open var thumbnailWidth: Int
The width of the thumbnails in pixels.

Functions

Link copied to clipboard
open fun getItemCount(): 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 onBindViewHolder(@NonNull holder: ThumbnailAdapter.ThumbnailViewHolder, pageIndex: Int)
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): ThumbnailAdapter.ThumbnailViewHolder
Link copied to clipboard
open fun onDrawablesChanged(@NonNull drawableProvider: PdfDrawableProvider)
open fun onDrawablesChanged(@NonNull drawableProvider: PdfDrawableProvider, pageIndex: Int)
Called when the drawables have changed.
Link copied to clipboard
open fun selectPage(@IntRange(from = 0) currentPageIndex: Int)
Sets selected page to highlight.
Link copied to clipboard
open fun setDrawableProviders(@NonNull drawableProviders: List<PdfDrawableProvider>)
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.