setBadgeLabel

external fun setBadgeLabel(label: String = definedExternally): Promise<Void>(source)

Sets the badge label shown on the app's dock icon. macOS only

Unlike {@linkcode Window.setBadgeCount}, which takes a number, this shows arbitrary short text. It is app-wide and not specific to this window.

Return

A promise indicating the success or failure of the operation.

Parameters

label

The badge label. Use undefined to remove the badge.