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: impl Into<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: impl Into<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.
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
impl<R: Debug + Runtime> Debug for App<R> where
R::GlobalShortcutManager: Debug,
R::ClipboardManager: Debug,
impl<R: Debug + Runtime> Debug for App<R> where
R::GlobalShortcutManager: Debug,
R::ClipboardManager: Debug,
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
Gets the managed state for the type T
. Panics if the type is not managed.