Struct tauri::App [−][src]
Expand description
The instance of the currently running application.
This type implements Manager
which allows for manipulation of global application items.
Implementations
pub fn create_window<F>(
&self,
label: String,
url: WindowUrl,
setup: F
) -> Result<()> where
F: FnOnce(<R::Dispatcher as Dispatch>::WindowBuilder, WebviewAttributes) -> (<R::Dispatcher as Dispatch>::WindowBuilder, WebviewAttributes),
pub fn create_window<F>(
&self,
label: String,
url: WindowUrl,
setup: F
) -> Result<()> where
F: FnOnce(<R::Dispatcher as Dispatch>::WindowBuilder, WebviewAttributes) -> (<R::Dispatcher as Dispatch>::WindowBuilder, WebviewAttributes),
Creates a new webview window.
This is supported on crate feature system-tray
only.
This is supported on crate feature
system-tray
only.Gets a handle handle to the system tray.
The path resolver for the application.
Gets a copy of the global shortcut manager instance.
Gets a copy of the clipboard manager instance.
Gets the app’s configuration, defined on the tauri.conf.json
file.
Gets the app’s package information.
Trait Implementations
Emits a event to all windows.
Emits an event to a window with the specified label.
Listen to a global event.
Listen to a global event only once.
Trigger a global event.
Fetch a single window from the manager.
Add state
to the state managed by the application.
See crate::Builder
for instructions. Read more
Auto Trait Implementations
impl<R = Wry> !RefUnwindSafe for App<R>
impl<R> Sync for App<R> where
R: Sync,
<R as Runtime>::ClipboardManager: Sync,
<R as Runtime>::GlobalShortcutManager: Sync,
<R as Runtime>::Handle: Sync,
<R as Runtime>::TrayHandler: Sync,
impl<R> Unpin for App<R> where
R: Unpin,
<R as Runtime>::ClipboardManager: Unpin,
<R as Runtime>::GlobalShortcutManager: Unpin,
<R as Runtime>::Handle: Unpin,
<R as Runtime>::TrayHandler: Unpin,
impl<R = Wry> !UnwindSafe for App<R>