setAppBadge method

JSPromise<JSAny?> setAppBadge([
  1. int contents
])

The setAppBadge() method of the Navigator interface sets a badge on the icon associated with this app. If a value is passed to the method, this will be set as the value of the badge. Otherwise the badge will display as a dot, or other indicator as defined by the platform.

Implementation

external JSPromise<JSAny?> setAppBadge([int contents]);