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:

ParameterTypeDescription
count?number | undefinedThe badge count.

Returns: booleanWhether the call succeeded.