Struct tauri::SystemTrayHandle
source · pub struct SystemTrayHandle<R: Runtime = Wry> { /* private fields */ }
Available on crate feature
system-tray
only.Expand description
A handle to a system tray. Allows updating the context menu items.
Implementations§
source§impl<R: Runtime> SystemTrayHandle<R>
impl<R: Runtime> SystemTrayHandle<R>
sourcepub fn get_item(&self, id: MenuIdRef<'_>) -> SystemTrayMenuItemHandle<R>
pub fn get_item(&self, id: MenuIdRef<'_>) -> SystemTrayMenuItemHandle<R>
Gets a handle to the menu item that has the specified id
.
Updates the tray menu.