Expand description
The app’s presence outside its windows (docs/status-item.md): status items, progress on the Dock or taskbar icon, the macOS Dock icon itself, and whether the app keeps running when its last window closes.
Enums§
- Keep
Running - Whether the app keeps running when its last window closes (docs/windows.md “Keeping the app
running”), set with
set_keep_running.
Functions§
- begin_
menu_ tracking - Backend hook: freeze a status item’s installed model and handlers during native menu
tracking. Updates are coalesced until
end_menu_tracking. The token prevents a delayed close callback from ending a later session (including removal and recreation of the id). - end_
menu_ tracking - Backend hook: finish tracking after the native selection has dispatched, then install
the most recent pending update. AppKit calls this on the next main-loop turn because
menuDidClose:precedes the selected item’s action. - keep_
running_ policy - The policy as set (default
KeepRunning::Automatic). - remove_
status_ item - Remove the status item
id, if shown. - reset_
status - Forget everything (tests; pairs with
uninstall_tree). - set_
app_ progress - Show
progresson the app’s Dock or taskbar icon (Cap::AppProgress, docs/status-item.md). - set_
dock_ visible - Show or hide the app’s Dock icon while it runs (
Cap::DockVisibility, macOS). A menu-bar app hides it and lives in its status item;[app.macos] dock = falsein Day.toml hides it from launch, before the first frame. - set_
keep_ running - Choose whether the app keeps running when its last window closes (docs/windows.md).
- set_
status_ item - Show
spec, or update the shown item with the same id (docs/status-item.md). Replacing an item drops the closures its previous menu and click held. While a backend is tracking the menu, keep the installed snapshot and coalesce updates until selection has finished. - status_
items - The status items currently shown, in order.