/
BadgeCount API

BadgeCount API

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

ssf.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: 

Related content

Desktop Container API Review
Desktop Container API Review
More like this
Notification API
Notification API
More like this
Activity API
Activity API
More like this
getMediaSources API
getMediaSources API
More like this
Activate API
Activate API
More like this
Use Case 6: Dynamic discovery in chat
Use Case 6: Dynamic discovery in chat
More like this

Need help? Email help@finos.org we'll get back to you.

Content on this page is licensed under the CC BY 4.0 license.
Code on this page is licensed under the Apache 2.0 license.