Skip to content

ElectronDock.setIcon method

ElectronDock › setIcon

Unofficial

Sets the image associated with this dock icon. macOS only.

Signature:

setIcon(image: string | ElectronNativeImage): void

Parameters:

Parameter Type Description
image string | ElectronNativeImage The image, or a path to it.

Returns: void