May 25, 2021 11:00 0 Comment Electron
Class: BrowserWindow, Class: BrowserWindow, Event, Method, The instance property, The instance method, The BrowserWindow, class gives you the power to create a browser window., For example:, // In the main process., const BrowserWindow = require('electr
May 25, 2021 11:00 0 Comment Electron
Platform-related tips, Platform-related tips, The list of events, The list of methods, This module provides an interface, to the Squirrel, automatic update framework., Platform-related tips, Although, the autoUpdater, module provides a s
May 25, 2021 11:00 0 Comment Electron
Methods, Methods, global-shortcut, module can easily set (register/log off) shortcuts for various custom actions., Note, : Shortcuts registered with this module are sys
May 25, 2021 12:00 0 Comment Electron
Class: Tray, Class: Tray, Event, Method, A Tray, is, Tray, to represent an icon that is in the notification area of a running system and is usually added to a context menu., const electron =
May 25, 2021 12:00 0 Comment Electron
Method, Method, web-frame, allows you to customize how the current web page is rendered ., Example, enlarge the current page to 200%., var webFrame = require('electro
May 25, 2021 12:00 0 Comment Electron
The remote object, The remote object, The lifecycle of the remote object, Pass callback functions to the main process, Access the built-in modules in the main process, Method, remote, module provides an easy way to communicate between the rendering process (web page) and the main process (IPC)., In Electron, GUI-related, mod
May 25, 2021 12:00 0 Comment Electron
Message monitoring, Message monitoring, Send a message, ipcRenderer, module, is an, example of an EventEmitter, class. I, t provides a limited way for you to send synchronous or asynchronous messages from t
May 25, 2021 12:00 0 Comment Electron
Method, Method, desktopCapturer, module can be used, to obtain available resources, which, getUserMedia, // 在渲染进程中., var desktopCapturer = require('electron').desktop
May 25, 2021 12:00 0 Comment Electron
Electron Locales, The locale value returned by app.getLocale()., Electron uses Chrome's l10n_util library to get the locale., The possible values are as follows:, The l
May 25, 2021 12:00 0 Comment Electron
Event, Event, The instance method, The instance property, webContents, is, an, event issuer, ., It is responsible for, rendering and controlling web pages and is, BrowserWindow, object., An example, of, webCo
May 25, 2021 12:00 0 Comment Electron
Method, Method, Property, Class: Session, session, module, can be used to create a, Session, object., You can, also use a, session that already has a, session, property, session, of, webConten
May 25, 2021 12:00 0 Comment Electron
Method, Method, protocol, module can register a custom protocol or use an existing protocol., For example, use, a protocol, file://, to :, const electron = require('e
May 25, 2021 12:00 0 Comment Electron
Method, Method, powerSaveBlocker, is used to prevent the application from entering sleep mode, so this allows the application to keep the system and screen working.,
May 25, 2021 13:00 0 Comment Electron
Method, Method, clipboard, module provides a way to copy and paste operations ., The following example shows how to write a string on a clipboard:, const clipboard =
May 25, 2021 13:00 0 Comment Electron
Method, Method, crash-reporter Payload, crash-reporter, opens to send app crash reports., Here is an example of an automatic crash report to the server:, const crashReporter = require('elect