Electron provides a rich set of APIs that leverage us to create a powerful desktop application, which gives us full control over native operating system APIs. We had discussed various aspects of the Electron application development, but we did not get into the details of the Electron APIs. In this chapter and the next chapter, we will be discussing the Electron API in detail. Most of the APIs discussed here should be working well with all major operating systems. Some of the features/APIs are designed specifically for certain platforms; this will be discussed accordingly. We will be checking the following points in detail in this chapter:
- Inter-process communication with ipcRenderer & ipcMain modules
- Protocol management and defining custom protocols
- Managing and accessing the system preferences
- Networking API
- Monitoring power state and managing the power
- Various other minor Electron APIs
The features that we will discuss here are readily available...