Package-level declarations

Types

Link copied to clipboard

Producer-side bridge between an AnnotatingController and the coordinator's contextual toolbar slice — the Compose successor to the View AnnotationToolbar's controller binding.

Link copied to clipboard

Producer-side bridge between PdfFragment and a ToolbarCoordinator.

Functions

Link copied to clipboard
fun NutrientDocumentStatusBarScrim(documentState: DocumentState, state: NutrientBackdropState, modifier: Modifier = Modifier, color: Color = NutrientStatusBarScrimDefaults.tint(), blurRadius: Dp = NutrientStatusBarScrimDefaults.BlurRadius, windowInsets: WindowInsets = WindowInsets.statusBars)

NutrientStatusBarScrim that decides for itself how much to show, from the document's own state.

Link copied to clipboard

Activity-scoped ToolbarCoordinator. Shared across all fragments hosted by this activity; survives configuration changes; cleaned up when the activity finishes.

Fragment-scoped ToolbarCoordinator. Tied to the fragment's lifecycle — survives configuration changes within the fragment; cleaned up when the fragment is destroyed.

Link copied to clipboard
fun nutrientToolbarsComposeView(context: Context, coordinator: ToolbarCoordinator, showMainToolbar: Boolean = false, defaultGroupingProvider: ContextualToolbarGroupingProvider? = null): ComposeView

The SDK toolbar stack (NutrientToolbars) as a ComposeView, with the full chrome PdfActivity has, so a custom activity built around PdfFragment gets the same behavior without hand-rolling it:

Link copied to clipboard

Registers a legacy MenuItemGroupingRule with the Compose annotation creation toolbar — the deprecated successor of the View AnnotationToolbar.setMenuItemGroupingRule. Equivalent to the kind-scoped overload with ContextualToolbarKind.Annotation. Pass null to clear.

Registers a legacy MenuItemGroupingRule for one contextual toolbar kind — the deprecated successor of setting a rule on that kind's View toolbar instance (AnnotationToolbar, DocumentEditingToolbar). Only PresetMenuItemGroupingRule subclasses are honored (their getGroupPreset() is pure data); custom groupMenuItems(...) overrides cannot be bridged. Pass null to clear that kind's rule.