Manage browser sessions, cookies, cache, proxy settings, etc. Retrieve information about screen size, displays, cursor position, etc. However, in order to enable the Chromium OS sandbox, electron must be run with the -enable-sandbox command line argument. With this option enabled, the renderer must communicate via IPC to the main process in order to access node APIs. Use main process modules from the renderer process.Ĭreate a browser window with a renderer that can run inside Chromium OS sandbox. Register a custom protocol and intercept existing protocol requests. Issue HTTP/HTTPS requests using Chromium's native networking libraryīlock the system from entering low-power (sleep) mode. Locale values returned by app.getLocale().Ĭreate native application menus and context menus.Īdd items to native application menus and context menus.Ĭreate tray, dock, and application icons using PNG or JPG files. Open a window without toolbars, borders, or other graphical "chrome".ĭetect keyboard events when the application does not have keyboard focus.Ĭommunicate asynchronously from the main process to renderer processes.Ĭommunicate asynchronously from a renderer process to the main process. Use the HTML5 File API to work natively with files on the filesystem. Perform copy and paste operations on the system clipboard.Ĭollect tracing data from Chromium's content module for finding performance bottlenecks and slow operations.Īn alternate transport for Chrome's remote debugging protocol.Īccess information about media sources that can be used to capture audio and video from the desktop using the API.ĭisplay native system dialogs for opening and saving files, alerting, etc.Ĭontrol file downloads from remote sources.Ĭontrol application configuration and behavior without changing code. Control your application's event lifecycle.Įnable apps to automatically update themselves.Ĭommand line switches supported by Electron.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |