目录
这个文件夹是 Electron 的概念、常用 API 和术语说明,材料来自 Electron 官方文档(进程模型、上下文隔离、IPC、安全清单、ASAR、Fuses,以及各 API 页面)。每篇只介绍一个主题。
基础概念
- Electron 是什么
- 进程模型
- 主进程与渲染进程
- 预加载脚本
- 上下文隔离
- 沙箱
- 进程间通信
- 应用生命周期
- 窗口与 WebContents
- 会话与分区
- 安全模型
- 自定义协议与深度链接
- 打包、分发与自动更新
常用 API
- app
- BrowserWindow
- BaseWindow 与 WebContentsView
- webContents
- ipcMain
- ipcRenderer
- contextBridge
- MessageChannelMain
- dialog
- Menu
- Tray
- shell
- Notification
- clipboard
- nativeImage
- globalShortcut
- nativeTheme
- screen
- session
- protocol
- net
- safeStorage
- powerMonitor 与 powerSaveBlocker
- systemPreferences
- desktopCapturer
- utilityProcess
- crashReporter
- webUtils