PdfStaticThumbnailBar

fun PdfStaticThumbnailBar(stateManager: ThumbnailBarStateManager, onPageChanged: (pageIndex: Int) -> Unit, modifier: Modifier = Modifier, windowInsets: WindowInsets = WindowInsets.navigationBars)

Composable function for the PDF Static Thumbnail Bar.

This is a pure UI component with no business logic. It:

  • Observes state from ThumbnailBarStateManager

  • Renders thumbnails based on current state

  • Emits events on user interactions

  • Handles side effects (navigation, errors)

Parameters

stateManager

The state manager that holds business logic

onPageChanged

Callback when user navigates to a different page

modifier

Modifier for customizing the layout. Apply Modifier.padding here for transparent margin around the bar.

windowInsets

System window insets the bar accounts for. PINNED extends the bar background behind the inset; FLOATING lifts itself above it via outer bottom margin. Pass WindowInsets (0,0,0,0) to opt out entirely.