setMainToolbarInsets

Sets the window insets the main toolbar reserves for its content (default ToolbarInsets.StatusBars). Pass ToolbarInsets.None when the toolbar is hosted away from the top edge of the window — e.g. an embedded com.pspdfkit.ui.PdfFragment below other chrome — so it does not add a spurious status-bar inset on top of the host's own spacing.

This is the host-agnostic control: it works for the SDK-mounted toolbar in PdfActivity / PdfUiFragment as well as the Compose-only path. For the Compose-only path the same control is also available directly as the windowInsets parameter of com.pspdfkit.compose.toolbar.composables.NutrientMainToolbar, which overrides this when set.