Resource

open external class Resource(source)

A rust-backed resource stored through tauri::Manager::resources_table API.

The resource lives in the main process and does not exist in the Javascript world, and thus will not be cleaned up automatically except on application exit. If you want to clean it up early, call {@linkcode Resource.close}

Inheritors

Constructors

Link copied to clipboard
constructor(rid: Double)

Properties

Link copied to clipboard
val rid: Double

Functions

Link copied to clipboard
fun close(): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>

Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.