setOverlayIcon
Sets the overlay icon. Windows only The overlay icon can be set for every window.
Note that you may need the image-ico or image-png Cargo features to use this API. To enable it, change your Cargo.toml file:
[dependencies]
tauri = { version = "...", features = ["...", "image-png"] }Content copied to clipboard
Return
A promise indicating the success or failure of the operation.
Parameters
icon
Icon bytes or path to the icon file. Use undefined to remove the overlay icon.