API
Functions
bounce()
Bounce this app icon in the dock.
Signature:
Parameters
Returns:
Promise<number>
An identifier representing the bounce executed.
cancelBounce()
Cancel the bounce action with identifier id
.
Signature:
Parameters
Returns:
Promise<void>
getBadge()
Get the currently set badge for this app in the dock.
Signature:
Returns:
Promise<string>
getMenu()
Gets the menu
associated with this dock icon.
Signature:
Returns:
Promise<InstanceRefObject>
hide()
Hides the dock icon.
Signature:
Returns:
Promise<void>
setBadge()
Set this app's badge in the dock.
Signature:
Parameters
Returns:
Promise<void>
setIcon()
Sets the image
associated with this dock icon.
Signature:
Parameters
Returns:
Promise<void>
Example
setMenu()
Sets the menu
associated with this dock icon.
Signature:
Parameters
Returns:
Promise<void>
show()
Shows the dock icon.
Signature:
Returns:
Promise<void>