ThumbnailBarUiState

data class ThumbnailBarUiState(val document: PdfDocument? = null, val configuration: PdfConfiguration? = null, val pageRenderConfiguration: ERROR CLASS: Symbol not found for PageRenderConfiguration?? = null, val thumbnails: List<ThumbnailItem> = emptyList(), val selectedPageThumbnail: ThumbnailItem? = null, val selectedSiblingThumbnail: ThumbnailItem? = null, val layoutStyle: ERROR CLASS: Symbol not found for LayoutStyle = LayoutStyle.FLOATING, val theme: ThumbnailBarTheme = ThumbnailBarTheme(), val isDoublePageMode: Boolean = false, val isFirstPageSingle: Boolean = false, val isRTL: Boolean = false, val excludedAnnotationTypes: List<ERROR CLASS: Symbol not found for AnnotationType> = emptyList(), val isRedactionPreviewEnabled: Boolean = false, val drawableProviders: List<PdfDrawableProvider> = emptyList(), @IntRange(from = 0) val availableWidth: Int = 0, val isLoading: Boolean = false, val error: String? = null, val dirtyPages: Set<Int> = emptySet(), val scrollableThumbnails: Map<Int, Bitmap> = emptyMap(), val isScrollableMode: Boolean = false, val scrollableSelectedPageIndex: Int = 0)

Represents the complete UI state of the thumbnail bar. Immutable data class ensuring safe state management.

Constructors

Link copied to clipboard
constructor(document: PdfDocument? = null, configuration: PdfConfiguration? = null, pageRenderConfiguration: ERROR CLASS: Symbol not found for PageRenderConfiguration?? = null, thumbnails: List<ThumbnailItem> = emptyList(), selectedPageThumbnail: ThumbnailItem? = null, selectedSiblingThumbnail: ThumbnailItem? = null, layoutStyle: ERROR CLASS: Symbol not found for LayoutStyle = LayoutStyle.FLOATING, theme: ThumbnailBarTheme = ThumbnailBarTheme(), isDoublePageMode: Boolean = false, isFirstPageSingle: Boolean = false, isRTL: Boolean = false, excludedAnnotationTypes: List<ERROR CLASS: Symbol not found for AnnotationType> = emptyList(), isRedactionPreviewEnabled: Boolean = false, drawableProviders: List<PdfDrawableProvider> = emptyList(), @IntRange(from = 0) availableWidth: Int = 0, isLoading: Boolean = false, error: String? = null, dirtyPages: Set<Int> = emptySet(), scrollableThumbnails: Map<Int, Bitmap> = emptyMap(), isScrollableMode: Boolean = false, scrollableSelectedPageIndex: Int = 0)

Types

Link copied to clipboard
object Companion

Constants for ThumbnailBarUiState.

Properties

Link copied to clipboard

Available width for layout calculations

Link copied to clipboard

Configuration for the current document

Link copied to clipboard

Set of page indices that need re-rendering

Link copied to clipboard

Current document being displayed

Link copied to clipboard

Custom drawable providers

Link copied to clipboard

Error message if something went wrong

Link copied to clipboard
val excludedAnnotationTypes: List<ERROR CLASS: Symbol not found for AnnotationType>

Annotation types to exclude from rendering

Link copied to clipboard

Whether to use double page mode

Link copied to clipboard

Whether the first page is single in double-page mode

Link copied to clipboard

Whether the view is currently loading/initializing

Link copied to clipboard

Whether redaction annotation preview is enabled

Link copied to clipboard

Whether the document is displayed in RTL mode

Link copied to clipboard

Whether the thumbnail bar is in scrollable mode

Link copied to clipboard
val layoutStyle: ERROR CLASS: Symbol not found for LayoutStyle

Layout style (floating or pinned)

Link copied to clipboard
val pageRenderConfiguration: ERROR CLASS: Symbol not found for PageRenderConfiguration??

Page rendering configuration

Link copied to clipboard

Currently selected page index for scrollable mode

Link copied to clipboard

Rendered thumbnails for scrollable mode, keyed by page index

Link copied to clipboard

Currently selected page thumbnail with position (includes hidden pages with interpolated positions)

Link copied to clipboard

Selected sibling page thumbnail in double-page mode (includes hidden pages with interpolated positions)

Link copied to clipboard

Theme configuration

Link copied to clipboard

List of thumbnails to display (excluding selected ones)