new

fun new(options: TrayIconOptions = definedExternally): Promise<TrayIcon>(source)

Creates a new {@linkcode TrayIcon}

Platform-specific:

  • Linux: Sometimes the icon won't be visible unless a menu is set. Setting an empty {@linkcode Menu} is enough.