app
Functions
defaultWindowIcon()
Get the default window icon.
Returns
Example
Since
2.0.0
Source: https://github.com/tauri-apps/tauri/blob/dev/packages/api/src/app.ts#L98
getName()
Gets the application name.
Returns
Promise
<string
>
Example
Since
1.0.0
Source: https://github.com/tauri-apps/tauri/blob/dev/packages/api/src/app.ts#L38
getTauriVersion()
Gets the Tauri version.
Returns
Promise
<string
>
Example
Since
1.0.0
Source: https://github.com/tauri-apps/tauri/blob/dev/packages/api/src/app.ts#L53
getVersion()
Gets the application version.
Returns
Promise
<string
>
Example
Since
1.0.0
Source: https://github.com/tauri-apps/tauri/blob/dev/packages/api/src/app.ts#L24
hide()
Hides the application on macOS.
Returns
Promise
<void
>
Example
Since
1.2.0
Source: https://github.com/tauri-apps/tauri/blob/dev/packages/api/src/app.ts#L83
show()
Shows the application on macOS. This function does not automatically focus any specific app window.
Returns
Promise
<void
>
Example
Since
1.2.0
Source: https://github.com/tauri-apps/tauri/blob/dev/packages/api/src/app.ts#L68
© 2024 Tauri Contributors. CC-BY / MIT