Module tauri_sys::app

source ·
Expand description

Get application metadata.

he APIs must be added to tauri.allowlist.app in tauri.conf.json:

{
    "tauri": {
        "allowlist": {
            "app": {
                "all": true, // enable all app APIs
                "show": true,
                "hide": true
            }
        }
    }
}

It is recommended to allowlist only the APIs you use for optimal bundle size and security.

Functions§

  • Gets the application name.
  • Gets the Tauri version.
  • Gets the application version.
  • Hides the application on macOS.
  • Shows the application on macOS. This function does not automatically focus the apps windows.