Kotlin Wrappers API Reference
Toggle table of contents
web
Target filter
web
Switch theme
Search in API
Skip to content
Kotlin Wrappers API Reference
kotlin-tauri-apps-api
/
tauri.apps.api.tray
/
TrayIcon
/
setMenu
set
Menu
fun
setMenu
(
menu
:
Menu
?
)
:
Promise
<
Void
>
(
source
)
fun
setMenu
(
menu
:
Submenu
?
)
:
Promise
<
Void
>
(
source
)
Sets a new tray menu.
Platform-specific:
Linux
: once a menu is set it cannot be removed so
null
has no effect