getById

external fun getById(id: String): Promise<TrayIcon?>(source)

Gets a tray icon using the provided id.

Use it to get a handle from the frontend to a tray icon that was created on the Rust side with an explicit id.