Package-level declarations

Types

Link copied to clipboard
sealed external interface BundleType

Bundle type of the current application.

Link copied to clipboard

Identifier type used for data stores on macOS and iOS.

Link copied to clipboard
external interface OnBackButtonPressPayload

Payload for the onBackButtonPress event.

Functions

Link copied to clipboard
external fun defaultWindowIcon(): Promise<Image?>

Gets the default window icon.

Link copied to clipboard

Fetches the data store identifiers on macOS and iOS.

Link copied to clipboard

Gets the application bundle type.

Link copied to clipboard
external fun getIdentifier(): Promise<String>

Gets the application identifier.

Link copied to clipboard
external fun getName(): Promise<String>

Gets the application name.

Link copied to clipboard
external fun getTauriVersion(): Promise<String>

Gets the Tauri framework version used by this application.

Link copied to clipboard
external fun getVersion(): Promise<String>

Gets the application version.

Link copied to clipboard
external fun hide(): Promise<Void>

Hides the application on macOS.

Link copied to clipboard

Listens to the backButton event on Android.

Link copied to clipboard

Removes the data store with the given identifier.

Link copied to clipboard
external fun setDockVisibility(visible: Boolean): Promise<Void>

Sets the dock visibility for the application on macOS.

Link copied to clipboard
external fun setTheme(theme: Theme? = definedExternally): Promise<Void>

Sets the application's theme. Pass in null or undefined to follow the system theme.

Link copied to clipboard
external fun show(): Promise<Void>

Shows the application on macOS. This function does not automatically focus any specific app window.