目录

Guides

Explore practical guides for common patterns and advanced desktop features you might want to use in your desktop application.

Application

How to initialize application, configure its options, manage its life cycle, etc.

Application Menu macOS

How to configure the main application menu on macOS.

Window Customization

How to create, customize, and manage life cycle of an application window.

Context Menu

How to configure and show the window context menu.

Dark Mode

How to enable the dark/light/system mode in the application.

Dialogs

How to show and manage the standard message dialogs such as alert, confirmation, prompt, beforeunload, etc.

Tray macOS Windows

How to create, configure, and show a tray item in the system tray on macOS and notification area on Windows.

Image

How to work with images using the Image API for icons and other visual elements.

Global Shortcuts

How to configure global keyboard shortcuts for your application.

Desktop macOS Windows

How to work with various desktop capabilities such as show file/folder in the file manager, open URL in default web browser, etc.

Notifications

How to show native desktop notifications on Windows, macOS, and Linux.

Preferences

How to work with the persistent key-value store for application preferences.

Clipboard

How to access the system clipboard to read and write data.

Dock macOS

How to configure the application’s icon in the macOS Dock.

Popups

How to handle JavaScript popup windows.

Custom Protocols

How to register and handle custom protocols.

Displays

How to work with native system displays.

Downloads

How to handle file downloads.

Permissions macOS Windows

How to manage access to the system permissions and handle permission requests from websites.