withContextualKind

Returns this action stamped with the contextual toolbar kind it originated from. Non-click actions (overflow, navigation, position) pass through unchanged — they are frame-level and carry no per-item source.

The SDK's com.pspdfkit.compose.toolbar.composables.NutrientContextualToolbar stamps every click it dispatches. A host rendering its own contextual bar (e.g. with defaultContextualToolbarEnabled(false)) must do the same before dispatching, or the SDK's mode binder will ignore the click as a main-toolbar action.