How to use Electron APIs?

Electron provides number of APIs for developing desktop applications in both main and renderer processes. In order to use an Electron API, we have to access the API from the included module using require keyword.

All Electron APIs are assigned a process type. Some are available to main process  and others to renderer process and rest of them to both the processes. A window in Electron is created using BrowserWindow class. It is available only in main process.

 

Leave a Reply