setOverlayIcon

fun setOverlayIcon(icon: String = definedExternally): Promise<Void>(source)
fun setOverlayIcon(icon: Image = definedExternally): Promise<Void>(source)
fun setOverlayIcon(icon: Uint8Array<*> = definedExternally): Promise<Void>(source)
fun setOverlayIcon(icon: ArrayBuffer = definedExternally): Promise<Void>(source)
fun setOverlayIcon(icon: ReadonlyArray<Double> = definedExternally): Promise<Void>(source)

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"] }

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.