Electron中的nativeAPI可以让应用调用系统的api实现一些网页实现不了的功能。
Electron分为主进程和渲染进程
主进程中的NativeAPI主要有
app, BrowserWindow, ipcMain, Menu, Tray, Mentultem, diglog,
Notification, webContents, autoUpdater, globalShortcut,
systemPreferences, TorchBar, netLog, powerMonitor, inAppPurchase,
net, powerSaveBlocker, contenrTracing, BrowserView, session, protocol, Screen
宣传进程的NativeAPI主要有
ipcRenderer, remote, desktopCapture, webFrame
还有一部分API是两个进程都有的
clipboard, crashReporter , shell, nativeImage
其中红色部分是常用的,
这里有一张图可以清晰的看到他们的关系

320




被折叠的 条评论
为什么被折叠?



