Skip to content

ElectronDock.setBadge method

ElectronDock › setBadge

Unofficial

Sets the string to be displayed in the dock's badging area. macOS only.

Signature:

setBadge(text: string): void

Parameters:

Parameter Type Description
text string The badge text.

Returns: void