The app module provides application metadata and whole-app lifecycle
control: name/version/identifier/bundle-format queries, multi-window
support, whole-app show/hide and the macOS Dock icon toggle — a port of
@tauri-apps/api/app. The module exports standalone functions plus an
aggregate object app (e.g. app.getName).
app is a framework built-in: its plugin:app|* commands are granted by
the core:default permission set in a capability; individual
core:allow-app_<underscored_cmd> permissions (e.g.
core:allow-app_get_config) grant single commands. No scope.
Example (adapted from examples/hello/frontend/src/main.ts, report
calls omitted; the anchors APP_OK, APP_CONFIG_OK, APP_LIFECYCLE_OK
are its real run outputs):
getConfig() never contains secrets such as invokeKey (hello asserts
!("invokeKey" in appInfo)).
plugin:app|* totals 13 commands: name, version,
tauri_version, get_config, identifier, bundle_type,
supports_multiple_windows, show, hide, set_dock_visibility,
default_window_icon, fetch_data_store_identifiers,
remove_data_store. Full list in the
Commands Reference.
Applicable version: ztron 0.3.1