Skip to main content

init

Function init 

Source
pub fn init<R: Runtime>() -> TauriPlugin<R>
Expand description

Initializes the plugin.

On setup, this restores the filesystem scope, and the asset:// protocol scope when the protocol-asset feature is enabled, from the state persisted during a previous run, then listens for further scope changes to persist them again. Scopes are stored under the app’s data directory; nothing is restored or persisted if that directory cannot be resolved. The fs plugin must be registered before this plugin, otherwise the filesystem scope is not restored or persisted (a warning is printed in debug builds).