Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Purpose

Display a number on the application icon in the desktop tray... usually to indicate number of unread messages for given application. for example...


SSF API

using ssf name space

SYM_API.setBadgeCount(Number);

Sets the badge count to the given value.  Value should be greater than or equal to zero.  Settings a zero value will remove the count.

Implementation

In electron for mac this is provided by existing electron api: https://electron.atom.io/docs/api/app/#appsetbadgecountcount-linux-macos

In electron for windows this requires using overlay icon api: https://electron.atom.io/docs/api/browser-window/#winsetoverlayiconoverlay-description-windows

For example implementation see: 

  • No labels