Dock

external class Dock(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun bounce(type: DockBounceType = definedExternally): Double

an ID representing the request.

Link copied to clipboard

Cancel the bounce of id.

Link copied to clipboard
fun downloadFinished(filePath: String)

Bounces the Downloads stack if the filePath is inside the Downloads folder.

Link copied to clipboard

The badge string of the dock.

Link copied to clipboard
fun getMenu(): Menu?

The application's dock menu.

Link copied to clipboard
fun hide()

Hides the dock icon.

Link copied to clipboard

Whether the dock icon is visible.

Link copied to clipboard
fun setBadge(text: String)

Sets the string to be displayed in the dock’s badging area.

Link copied to clipboard
fun setIcon(image: NativeImage)
fun setIcon(image: String)

Sets the image associated with this dock icon.

Link copied to clipboard
fun setMenu(menu: Menu)

Sets the application's dock menu.

Link copied to clipboard
fun show(): Promise<Void>

Resolves when the dock icon is shown.