Skip to content

ElectronTray.setPressedImage method

ElectronTray › setPressedImage

Unofficial

Sets the image associated with this tray icon when pressed on macOS. darwin only.

Signature:

setPressedImage(image: string | ElectronNativeImage): void

Parameters:

Parameter Type Description
image string | ElectronNativeImage The image to use as the pressed tray icon.

Returns: void