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.window
/
Window
/
setIcon
set
Icon
fun
setIcon
(
icon
:
String
)
:
Promise
<
Void
>
(
source
)
fun
setIcon
(
icon
:
Image
)
:
Promise
<
Void
>
(
source
)
fun
setIcon
(
icon
:
Uint8Array
<
*
>
)
:
Promise
<
Void
>
(
source
)
fun
setIcon
(
icon
:
ArrayBuffer
)
:
Promise
<
Void
>
(
source
)
fun
setIcon
(
icon
:
ReadonlyArray
<
Double
>
)
:
Promise
<
Void
>
(
source
)
Sets the window icon.
Parameters
icon
Icon bytes or path to the icon file.