Toolbar Action
One-way event emitted by a toolbar composable.
Composables never call back into the coordinator directly — they emit a ToolbarAction, the coordinator routes it. This keeps composables pure, makes every interaction testable without UI, and lets the legacy OnMenuItemClickListener bridge attach at one well-defined point.
Pre-Phase 0 scaffolding.
Inheritors
Types
A toolbar item was tapped.
A toolbar item was long-pressed.
The toolbar navigation (up/back) affordance was tapped.
The overflow menu was expanded or collapsed.
A change of the toolbar's screen position was requested.
A child inside a submenu was tapped.
Functions
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.