app
Functions
getName()
getName(): Promise< string >Gets the application name.
Example
import { getName } from '@tauri-apps/api/app';const appName = await getName();Since
1.0.0
Returns
Promise< string >
Source: app.ts:37
getTauriVersion()
getTauriVersion(): Promise< string >Gets the Tauri version.
Example
import { getTauriVersion } from '@tauri-apps/api/app';const tauriVersion = await getTauriVersion();Since
1.0.0
Returns
Promise< string >
Source: app.ts:52
getVersion()
getVersion(): Promise< string >Gets the application version.
Example
import { getVersion } from '@tauri-apps/api/app';const appVersion = await getVersion();Since
1.0.0
Returns
Promise< string >
Source: app.ts:23
hide()
hide(): Promise< void >Hides the application on macOS.
Example
import { hide } from '@tauri-apps/api/app';await hide();Since
1.2.0
Returns
Promise< void >
Source: app.ts:82
show()
show(): Promise< void >Shows the application on macOS. This function does not automatically focus any specific app window.
Example
import { show } from '@tauri-apps/api/app';await show();Since
1.2.0
Returns
Promise< void >
Source: app.ts:67
© 2024 Tauri Contributors. CC-BY / MIT