Skip to content

API Reference

Work in Progress

For now most of the APIs listed below are linked to the Electron documentation pages respectfully.
Please be aware that they work similarly, but probably not exactly the same.

app

Events

Methods

BrowserWindow

new BrowserWindow(options)

Supported options fields:

  • width, height
  • x, y
  • center
  • minWidth, minHeight, maxWidth, maxHeight
  • resizable, minimizable, maximizable, closable
  • icon (path string only)
  • frame
  • title
  • show
  • vibrancy
  • menu
  • titleBarStyle (supported values: default, hidden, hiddenInset)

Instance Events

Instance Methods

Instance Properties

Static Methods

WebView (alias: WebContents)

Instance Methods

Instance Properties

webViews (alias: webContents)

Methods

messageUI (alias: ipcRenderer)

Methods

messageNode (alias: ipcMain)

Methods

dialog

Methods

shell

Methods

systemPreferences

Methods

Events

  • dark-mode-toggled (available on macOS and Windows): will be emitted when the user turns on or turns off the system‘s dark mode.