Dock Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌
Instance members
| Instance member |
Description
|
|
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ an ID representing the request.When critical is passed, the dock icon will bounce until either the application becomes active or the request is canceled.When informational is passed, the dock icon will bounce for one second. However, the request remains active until either the application becomes active or the request is canceled.> [!NOTE] This method can only be used while the app is not focused; when the app is focused it will return -1.
|
Full Usage:
this.cancelBounce id
Parameters:
int
Modifiers: inline |
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Cancel the bounce of id.
|
Full Usage:
this.downloadFinished filePath
Parameters:
string
Modifiers: inline |
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Bounces the Downloads stack if the filePath is inside the Downloads folder.
|
Full Usage:
this.getBadge ()
Returns: string
Modifiers: inline |
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ The badge string of the dock.
|
|
|
Full Usage:
this.hide ()
Modifiers: inline |
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Hides the dock icon. |
Full Usage:
this.isVisible ()
Returns: bool
Modifiers: inline |
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Whether the dock icon is visible.
|
Full Usage:
this.setBadge text
Parameters:
string
Modifiers: inline |
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Sets the string to be displayed in the dock’s badging area.> [!IMPORTANT] You need to ensure that your application has the permission to display notifications for this method to work.
|
|
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Sets the image associated with this dock icon.
|
|
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Sets the application's dock menu.
|
|
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Resolves when the dock icon is shown.
|
fable-electron-docs-api