Skip to content

ElectronApp.setBadgeCount method

ElectronApp › setBadgeCount

Unofficial

Sets the counter badge for the current app. Setting the count to 0 hides the badge. Linux and macOS only.

Signature:

setBadgeCount(count?: number | undefined): boolean

Parameters:

Parameter Type Description
count? number | undefined The badge count.

Returns: booleanWhether the call succeeded.