📝 docs for unity launcher badge api
This commit is contained in:
parent
e3ba6818af
commit
336a55cb23
1 changed files with 11 additions and 0 deletions
|
@ -647,6 +647,17 @@ Sets the application's [dock menu][dock-menu].
|
|||
|
||||
Sets the `image` associated with this dock icon.
|
||||
|
||||
### `app.unityLauncher.setBadgeCount(count)` _Ubuntu Unity_
|
||||
* `count` Integer
|
||||
|
||||
Sets the number to be displayed next to the app icon in the unity launcher.
|
||||
Setting count to `0` will hide the badge.
|
||||
|
||||
### `app.unityLauncher.getBadgeCount(count)` _Ubuntu Unity_
|
||||
|
||||
Returns the current value displayed in the counter badge next to the launcher icon.
|
||||
|
||||
|
||||
[dock-menu]:https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/customizing_docktile/concepts/dockconcepts.html#//apple_ref/doc/uid/TP30000986-CH2-TPXREF103
|
||||
[tasks]:http://msdn.microsoft.com/en-us/library/windows/desktop/dd378460(v=vs.85).aspx#tasks
|
||||
[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
|
||||
|
|
Loading…
Reference in a new issue