ToolbarFrame

data class ToolbarFrame(val isVisible: Boolean = true, val height: Dp = 56.dp, val position: ToolbarPosition = ToolbarPosition.Top, val title: String? = null, val navigationIcon: ToolbarIcon = ToolbarIcon.None, val navigationContentDescription: String? = null, val insets: ToolbarInsets = ToolbarInsets.StatusBars)

Frame-level toolbar state — visual chrome that's independent of which items are shown. Splitting this from ToolbarItems means changing frame colors doesn't recompose item rows, and vice-versa (loophole P1-13).

Pre-Phase 0 scaffolding.

Constructors

Link copied to clipboard
constructor(isVisible: Boolean = true, height: Dp = 56.dp, position: ToolbarPosition = ToolbarPosition.Top, title: String? = null, navigationIcon: ToolbarIcon = ToolbarIcon.None, navigationContentDescription: String? = null, insets: ToolbarInsets = ToolbarInsets.StatusBars)

Types

Link copied to clipboard
object Companion

Factory holder for common ToolbarFrame values.

Properties

Link copied to clipboard
val height: Dp

Height of the toolbar bar.

Link copied to clipboard

Window insets the toolbar reserves for its content. Defaults to ToolbarInsets.StatusBars (correct for the SDK's edge-to-edge top mounting). Set via com.pspdfkit.compose.toolbar.adapter.ToolbarCoordinator.setMainToolbarInsets.

Link copied to clipboard

Whether the toolbar is shown at all.

Link copied to clipboard

Accessibility label of navigationIcon, or null for the renderer's default ("Navigate up").

Link copied to clipboard

The navigation (up / back) icon at the toolbar's leading edge, or ToolbarIcon.None (the default) for no navigation affordance. Tapping it dispatches ToolbarAction.NavigationClicked. Set via com.pspdfkit.compose.toolbar.adapter.ToolbarCoordinator.setMainToolbarNavigationIcon.

Link copied to clipboard

Where the toolbar is anchored on screen.

Link copied to clipboard

Optional title rendered in the toolbar, or null for no title.