Skip to content

ElectronTray.setImage method

ElectronTray › setImage

Unofficial

Sets the image associated with this tray icon.

Signature:

setImage(image: string | ElectronNativeImage): void

Parameters:

ParameterTypeDescription
imagestring | ElectronNativeImageThe image to use as the tray icon.

Returns: void