setToolbarItemsProvider

Customizes the main-toolbar items declaratively — the com.pspdfkit.jetpack.compose.views.DocumentView-hosted counterpart of com.pspdfkit.ui.PdfActivity.setToolbarItemsProvider. The provider receives the SDK's default items and returns the items to show (add custom items, drop or reorder defaults, or change per-item state). Call invalidateToolbarItems to re-run it when your own state changes. Safe to call before the com.pspdfkit.jetpack.compose.views.DocumentView is attached — the provider is applied once the fragment connects.

Parameters

provider

the provider to set, or null to clear it.