pub struct ShellPluginBuilder { /* private fields */ }Expand description
Builder returned by ShellPlugin::builder.
Implementations§
Source§impl ShellPluginBuilder
impl ShellPluginBuilder
Sourcepub fn shell(self, shell: Shell) -> Self
pub fn shell(self, shell: Shell) -> Self
The app’s configuration, built with Shell::builder(app_id)...build().
Sourcepub fn build(self) -> TauriPlugin<Wry>
pub fn build(self) -> TauriPlugin<Wry>
Install the plugin with the modules that remain enabled.
§Panics
Panics when ShellPluginBuilder::shell was never called, which is a programmer error at
startup, the same as an invalid app id.
Sourcepub fn lifecycle_only(self) -> TauriPlugin<Wry>
pub fn lifecycle_only(self) -> TauriPlugin<Wry>
Install the lifecycle without the webview policy: ModuleSet::lifecycle_only. Besides the
module set, a lifecycle-only install defaults repair_cache to off and shows the main window
on ready only when the host called show_on_ready(true); repair_cache(true) turns the
repair back on.
Sourcepub fn install_state_only(self) -> TauriPlugin<Wry>
pub fn install_state_only(self) -> TauriPlugin<Wry>
Install only the state the broker, stream, recovery, frameless and clipboard commands use.
This replaces any earlier without calls: hardening, navigation policy, window restore,
show-on-ready, watchdog and presence are all off.