Package-level declarations
Types
Properties
Functions
Link copied to clipboard
external fun <T> addPluginListener(plugin: String, event: String, cb: (payload: T) -> Unit): Promise<PluginListener>
Adds a listener to a plugin event.
Link copied to clipboard
Get permission state for a plugin.
Link copied to clipboard
Convert a device file path to an URL that can be loaded by the webview. Note that asset: and http://asset.localhost must be added to app.security.csp in tauri.conf.json. Example CSP value: "csp": "default-src 'self' ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost" to use the asset protocol on image sources.
Link copied to clipboard
external fun <T> invoke(cmd: String, args: InvokeArgs = definedExternally, options: InvokeOptions = definedExternally): Promise<T>
Sends a message to the backend.
Link copied to clipboard
Request permissions.
Link copied to clipboard