pub fn use_tray_icon_event_handler(
handler: impl FnMut(&TrayIconEvent) + 'static,
) -> WryEventHandler
Available on Windows or Linux or macOS only.
Expand description
Register an event handler that runs when a tray icon event is processed.
This is only for tray icon and not it’s menus.
If you want to register tray icon menus handler use use_tray_menu_event_handler
instead.