Skip to content

electron/internals

ClassDescription
ElectronBrowserViewElectron BrowserView for embedding additional web content in a ElectronBrowserWindow.
ElectronBrowserWindowElectron BrowserWindow for creating and managing application windows.
ElectronClientRequestAn HTTP/HTTPS request issued through the net module.
ElectronIncomingMessageAn HTTP response message returned by a ClientRequest.
ElectronMenuElectron Menu for creating native application menus and context menus.
ElectronMenuItemElectron MenuItem for adding items to native application menus.
ElectronMessageChannelMainA main-process channel that owns a pair of connected ElectronMessagePortMain ports.
ElectronNotificationElectron Notification for creating and showing native OS notifications.
ElectronShareMenuElectron ShareMenu for presenting the native share sheet for a ElectronSharingItem.
ElectronTouchBarElectron TouchBar for building a macOS Touch Bar layout.
ElectronTouchBarButtonA button item for a ElectronTouchBar.
ElectronTouchBarColorPickerA color picker item for a ElectronTouchBar.
ElectronTouchBarGroupA group item for a ElectronTouchBar.
ElectronTouchBarLabelA label item for a ElectronTouchBar.
ElectronTouchBarOtherItemsProxyA proxy item that reserves space for system-provided items in a ElectronTouchBar.
ElectronTouchBarPopoverA popover item for a ElectronTouchBar.
ElectronTouchBarScrubberA scrubber item for a ElectronTouchBar.
ElectronTouchBarSegmentedControlA segmented control item for a ElectronTouchBar.
ElectronTouchBarSliderA slider item for a ElectronTouchBar.
ElectronTouchBarSpacerA spacer item for a ElectronTouchBar.
ElectronTrayElectron Tray for adding icons and context menus to the system’s notification area.
InterfaceDescription
BrowserWindowConstructorOptionsOptions for creating a new BrowserWindow.
ElectronAboutPanelOptionsOptionsOptions for the application’s about panel.
ElectronAcceleratorElectron Accelerator, a string representing a keyboard shortcut.
ElectronAddRepresentationOptionsOptions for NativeImage.addRepresentation.
ElectronAnimationSettingsDescribes the system-wide animation settings.
ElectronAppElectron App for controlling the application lifecycle.
ElectronAppDetailsOptionsOptions for the window’s taskbar button (Windows only).
ElectronApplicationInfoForProtocolReturnValueInformation about the application handling a given protocol.
ElectronAuthenticationResponseDetailsDetails about an authentication request emitted with the login event.
ElectronAuthInfoInformation about an authentication challenge.
ElectronAutoResizeOptionsOptions controlling how a ElectronBrowserView auto-resizes with its window.
ElectronAutoUpdaterEnables apps to automatically update themselves.
ElectronBeforeSendResponseResponse object returned by an onBeforeSendHeaders web-request listener callback.
ElectronBluetoothDeviceA Bluetooth device available for selection.
ElectronBluetoothPairingHandlerHandlerDetailsDetails passed to the Session.setBluetoothPairingHandler handler describing a Bluetooth pairing request.
ElectronBluetoothPairingResponseResponse returned to the Session.setBluetoothPairingHandler callback to resolve a Bluetooth pairing request.
ElectronBrowserViewConstructorOptionsOptions for creating an ElectronBrowserView.
ElectronBrowserWindowLoadFileOptionsOptions for ElectronBrowserWindow.loadFile.
ElectronBrowserWindowLoadURLOptionsOptions for ElectronBrowserWindow.loadURL.
ElectronCertificateAn Electron certificate.
ElectronCertificatePrincipalPrincipal (subject or issuer) of an Electron certificate.
ElectronCertificateTrustDialogOptionsOptions for Electron certificate trust dialog.
ElectronClearCodeCachesOptionsOptions controlling which code caches are cleared.
ElectronClearStorageDataOptionsOptions controlling which storage data is cleared.
ElectronClientRequestConstructorOptionsOptions for constructing a ClientRequest.
ElectronClipboardElectron Clipboard for reading and writing system clipboard data.
ElectronClipboardBookmarkA bookmark read from the clipboard.
ElectronCommandLineReads and manipulates the command line arguments that Chromium uses.
ElectronConfigProxy configuration for a session.
ElectronConfigureHostResolverOptionsOptions for configuring host resolution (DNS and DNS-over-HTTPS).
ElectronContentTracingCollects tracing data from Chromium’s content module for finding performance bottlenecks and slow operations.
ElectronContextBridgeElectron ContextBridge for exposing APIs from an isolated preload script to the main world.
ElectronContextMenuParamsParameters describing the context in which a context menu was invoked.
ElectronContinueActivityDetailsDetails about a Handoff activity being continued from another device.
ElectronCookieA cookie stored in an Electron session.
ElectronCookiesQueries and modifies a session’s cookies.
ElectronCookiesGetFilterFilter used to query cookies from an Electron session.
ElectronCookiesSetDetailsDetails used to set a cookie on an Electron session.
ElectronCPUUsageCPU usage statistics for a process.
ElectronCrashReportThe date and ID of a crash report.
ElectronCrashReporterElectron CrashReporter for submitting crash reports to a remote server.
ElectronCrashReporterStartOptionsOptions for crashReporter.start.
ElectronCreateFromBitmapOptionsOptions for nativeImage.createFromBitmap.
ElectronCreateFromBufferOptionsOptions for nativeImage.createFromBuffer.
ElectronCreateInterruptedDownloadOptionsOptions used to resume a cancelled or interrupted download from a previous session.
ElectronCustomSchemeA custom scheme to be registered with a protocol, along with its privileges.
ElectronDataData to write to the clipboard.
ElectronDebuggerA debugger instance for a web contents, used to communicate with the Chrome DevTools Protocol.
ElectronDefaultFontFamilyDefault font families used by the renderer, keyed by generic family.
ElectronDesktopCapturerElectron desktop capturer for accessing information about media sources that can be used to capture audio and video from the desktop using the navigator.mediaDevices.getUserMedia API.
ElectronDesktopCapturerSourceA screen or individual window that can be captured, returned by desktopCapturer.getSources.
ElectronDetailsDetails about a child process that has gone (crashed or killed).
ElectronDevicePermissionHandlerHandlerDetailsDetails passed to a device permission handler.
ElectronDialogElectron Dialog for showing native system dialogs.
ElectronDidCreateWindowDetailsDetails about a window created via window.open.
ElectronDisplayDescribes a display connected to the system.
ElectronDisplayBalloonOptionsOptions for ElectronTray.displayBalloon.
ElectronDockPerforms actions on the app icon in the user’s dock on macOS.
ElectronDownloadItemControls and reports on a file download in a session.
ElectronEditFlagsFlags indicating which editing actions the renderer believes it can perform.
ElectronEnableNetworkEmulationOptionsOptions for emulating network conditions for a session.
ElectronEventElectron event object passed to event listeners, extending the DOM Event.
ElectronExtensionA loaded Chrome extension.
ElectronFeedURLOptionsOptions for configuring the auto updater feed URL.
ElectronFileFilterFile filter for Electron dialog file type selection.
ElectronFileIconOptionsOptions for fetching a file’s associated icon.
ElectronFindInPageOptionsOptions for a find-in-page request.
ElectronFocusOptionsOptions for focusing the application.
ElectronFrameCreatedDetailsDetails about a newly created frame.
ElectronFromPartitionOptionsOptions used when creating a session from a partition.
ElectronGlobalShortcutDetects keyboard events when the application does not have keyboard focus.
ElectronGPUFeatureStatusThe Graphics Feature Status from chrome://gpu/.
ElectronHandlerDetailsDetails about a window open request handled by a window open handler.
ElectronHeadersReceivedResponseResponse object returned by an onHeadersReceived web-request listener callback.
ElectronHIDDeviceA HID device available for selection via the Web HID API.
ElectronHidDeviceAddedDetailsDetails passed to the hid-device-added session event.
ElectronHidDeviceRemovedDetailsDetails passed to the hid-device-removed session event.
ElectronIgnoreMouseEventsOptionsOptions for ElectronBrowserWindow.setIgnoreMouseEvents.
ElectronImportCertificateOptionsOptions for importing a certificate into the platform certificate store.
ElectronInAppPurchaseIn-app purchases on the Mac App Store.
ElectronInfoSecurity origin, content security policy and name of an isolated world.
ElectronInputInput properties describing a keyboard event dispatched to the page.
ElectronInputEventBase shape shared by every Electron input event passed to ElectronWebContents.sendInputEvent.
ElectronInsertCSSOptionsOptions for inserting CSS into a web page.
ElectronIpcMainElectron IPC main for communicating with renderer processes from the main process.
ElectronIpcMainEventEvent passed as the first argument to ipcMain on/once listeners.
ElectronIpcMainInvokeEventEvent passed as the first argument to ipcMain handle/handleOnce handlers.
ElectronIpcRendererElectron IPC renderer for communicating with the main process.
ElectronItemThe item to drag during a drag-and-drop operation.
ElectronJumpListCategoryA category in a Windows Jump List.
ElectronJumpListItemA single item in a Windows Jump List.
ElectronJumpListSettingsCurrent settings of the Windows Jump List.
ElectronKeyboardEventModifier-key state describing how an accelerator-triggered event was activated.
ElectronKeyboardInputEventKeyboard input event passed to ElectronWebContents.sendInputEvent to inject a trusted key press.
ElectronLaunchItemsA registry-backed login launch item on Windows.
ElectronLoadExtensionOptionsOptions controlling how an extension is loaded.
ElectronLoginItemSettingsThe app’s login item settings.
ElectronLoginItemSettingsOptionsOptions for querying the app’s login item settings.
ElectronMarginsThe margins of a printed web page.
ElectronMediaFlagsFlags describing the state of a media element under the context menu.
ElectronMemoryInfoMemory usage statistics for a process.
ElectronMemoryUsageDetailsUsage information for one of Blink’s internal memory caches.
ElectronMenuItemConstructorOptionsOptions for constructing an Electron ElectronMenuItem.
ElectronMenuPopupOptionsOptions for popping up a context menu.
ElectronMessageBoxOptionsOptions for Electron message box dialog.
ElectronMessageBoxReturnValueReturn value from an Electron message box dialog.
ElectronMessageBoxSyncOptionsOptions for Electron synchronous message box dialog.
ElectronMessageDetailsDetails of a console message logged by a service worker.
ElectronMessageEventEvent emitted when a MessagePortMain receives a message.
ElectronMessagePortMainThe main-process end of a MessagePort channel.
ElectronModuleThe Electron library module type, representing the window.electron object.
ElectronMouseInputEventMouse input event passed to ElectronWebContents.sendInputEvent to inject a trusted pointer event.
ElectronMouseWheelInputEventMouse wheel input event passed to ElectronWebContents.sendInputEvent to inject a trusted scroll.
ElectronMoveToApplicationsFolderOptionsOptions for moving the application into the Applications folder.
ElectronNativeImageElectron NativeImage for handling tray, dock, and application images.
ElectronNativeImageModuleElectron nativeImage module for creating tray, dock, and application images from various sources.
ElectronNativeImageScaleFactorOptionsOptions for NativeImage scale factor operations.
ElectronNativeImageSizeThe size of a NativeImage.
ElectronNativeThemeElectron NativeTheme for reading and updating the system’s theme preferences.
ElectronNetIssues HTTP/HTTPS requests using Chromium’s native networking library.
ElectronNetLogRecords network events for a session to a file for later analysis.
ElectronNewWindowWebContentsEventThe event emitted for the deprecated new-window event.
ElectronNotificationActionAn action button shown on a native notification.
ElectronNotificationConstructorOptionsOptions for constructing an ElectronNotification.
ElectronNotificationResponseUser’s response to a native notification.
ElectronOnBeforeRedirectListenerDetailsDetails passed to an onBeforeRedirect web-request listener.
ElectronOnBeforeRequestListenerDetailsDetails passed to an onBeforeRequest web-request listener.
ElectronOnBeforeSendHeadersListenerDetailsDetails passed to an onBeforeSendHeaders web-request listener.
ElectronOnCompletedListenerDetailsDetails passed to an onCompleted web-request listener.
ElectronOnErrorOccurredListenerDetailsDetails passed to an onErrorOccurred web-request listener.
ElectronOnHeadersReceivedListenerDetailsDetails passed to an onHeadersReceived web-request listener.
ElectronOnResponseStartedListenerDetailsDetails passed to an onResponseStarted web-request listener.
ElectronOnSendHeadersListenerDetailsDetails passed to an onSendHeaders web-request listener.
ElectronOpenDialogOptionsOptions for Electron open file dialog.
ElectronOpenDialogReturnValueReturn value from an Electron open file dialog.
ElectronOpenDialogSyncOptionsOptions for Electron synchronous open file dialog.
ElectronPageRangesA range of pages to print.
ElectronParametersParameters for device emulation.
ElectronPaymentA payment in the Mac App Store payment queue.
ElectronPaymentDiscountDetails of a discount offer to apply to a payment.
ElectronPermissionCheckHandlerHandlerDetailsDetails passed to a permission check handler.
ElectronPermissionRequestHandlerHandlerDetailsDetails passed to a permission request handler.
ElectronPointRepresents a point with x and y coordinates.
ElectronPostBodyThe post data sent to a new window.
ElectronPowerMonitorElectron powerMonitor module for monitoring power state changes.
ElectronPowerSaveBlockerElectron powerSaveBlocker module for blocking the system from entering low-power (sleep) mode.
ElectronPreconnectOptionsOptions controlling how sockets are preconnected to an origin.
ElectronPrinterInfoInformation about a system printer.
ElectronPrinterInfoOptionsAn object containing a variable number of platform-specific printer information entries.
ElectronPrintToPDFOptionsOptions for printing a web page to PDF.
ElectronPrivilegesPrivileges granted to a custom scheme registered with a protocol.
ElectronProcessMetricMemory and CPU usage statistics for a process associated with the app.
ElectronProductA product available for purchase from the Mac App Store.
ElectronProductDiscountA discount offer for a product in the Mac App Store.
ElectronProductSubscriptionPeriodThe period details for products that are subscriptions.
ElectronProgressBarOptionsOptions for ElectronBrowserWindow.setProgressBar.
ElectronProtocolRegisters and intercepts custom protocol schemes for a session.
ElectronProtocolRequestA request passed to a protocol handler.
ElectronProtocolResponseA response returned from a protocol handler callback.
ElectronProtocolResponseUploadDataUpload data used as the body of a protocol response for POST requests.
ElectronProviderA spell check provider for input fields and text areas.
ElectronRectangleRepresents a rectangle with position and dimensions.
ElectronReferrerRepresents an HTTP referrer and its policy.
ElectronRegistrationCompletedDetailsDetails of a completed service worker registration.
ElectronRelaunchOptionsOptions for relaunching the application.
ElectronRemoteElectron @electron/remote module for accessing main process modules from the renderer.
ElectronRenderProcessGoneDetailsDetails about a renderer process that has gone (crashed or killed).
ElectronRequestA certificate verification request passed to a certificate verify proc.
ElectronResizeOptionsOptions for NativeImage.resize.
ElectronResourceUsageUsage information of Blink’s internal memory caches.
ElectronResponseResponse object returned by an onBeforeRequest web-request listener callback.
ElectronResultThe result of a find-in-page request.
ElectronSafeStorageElectron safeStorage module for encrypting and decrypting strings using OS-level cryptography.
ElectronSaveDialogOptionsOptions for Electron save file dialog.
ElectronSaveDialogReturnValueReturn value from an Electron save file dialog.
ElectronSaveDialogSyncOptionsOptions for Electron synchronous save file dialog.
ElectronScreenElectron Screen for retrieving information about screen size, displays, cursor position, and so on.
ElectronScrubberItemAn item shown in a ElectronTouchBarScrubber.
ElectronSegmentedControlSegmentA segment shown in a ElectronTouchBarSegmentedControl.
ElectronSelectHidDeviceDetailsDetails passed to the select-hid-device session event.
ElectronSerialPortA serial port available for selection via the Web Serial API.
ElectronServiceWorkerInfoInformation about a running service worker.
ElectronServiceWorkersProvides access to the service workers registered within a session.
ElectronSessionModuleThe session module accessor exposed by Electron, providing the default session and a factory for partition-based sessions.
ElectronSettingsSettings for the app’s login item.
ElectronSharedWorkerInfoInformation about a shared worker.
ElectronSharingItemElectron SharingItem describing the content to share via the shareMenu role.
ElectronShellElectron Shell for managing files and URLs using their default applications.
ElectronShellOpenExternalOptionsOptions for opening an external URL.
ElectronShortcutDetailsDetails of a shortcut link used by readShortcutLink and writeShortcutLink.
ElectronSizeRepresents dimensions with width and height.
ElectronSourcesOptionsOptions for desktopCapturer.getSources.
ElectronSSLConfigConfigSSL configuration for a session.
ElectronStartLoggingOptionsOptions controlling how network events are captured when logging starts.
ElectronSystemPreferencesElectron SystemPreferences for reading and writing system-wide preferences.
ElectronTaskA task in the Tasks category of a Windows Jump List.
ElectronThumbarButtonA button in a thumbnail toolbar (Windows only).
ElectronTitleBarOverlayConfiguration for the Window Controls Overlay when creating a window.
ElectronTitleBarOverlayOptionsOptions for ElectronBrowserWindow.setTitleBarOverlay.
ElectronTitleOptionsOptions for ElectronTray.setTitle.
ElectronTouchBarButtonConstructorOptionsOptions for creating a ElectronTouchBarButton.
ElectronTouchBarColorPickerConstructorOptionsOptions for creating a ElectronTouchBarColorPicker.
ElectronTouchBarConstructorOptionsOptions for creating a ElectronTouchBar.
ElectronTouchBarGroupConstructorOptionsOptions for creating a ElectronTouchBarGroup.
ElectronTouchBarLabelConstructorOptionsOptions for creating a ElectronTouchBarLabel.
ElectronTouchBarPopoverConstructorOptionsOptions for creating a ElectronTouchBarPopover.
ElectronTouchBarScrubberConstructorOptionsOptions for creating a ElectronTouchBarScrubber.
ElectronTouchBarSegmentedControlConstructorOptionsOptions for creating a ElectronTouchBarSegmentedControl.
ElectronTouchBarSliderConstructorOptionsOptions for creating a ElectronTouchBarSlider.
ElectronTouchBarSpacerConstructorOptionsOptions for creating a ElectronTouchBarSpacer.
ElectronTraceBufferUsageReturnValueThe maximum usage across processes of the trace buffer.
ElectronTraceCategoriesAndOptionsLegacy trace configuration controlling which category groups are traced and how.
ElectronTraceConfigTrace configuration controlling which categories are traced and how the recording behaves.
ElectronTransactionA transaction in the Mac App Store payment queue.
ElectronUploadDataA chunk of upload data attached to a network request.
ElectronUploadFileA file to be uploaded as part of a request body.
ElectronUploadProgressProgress information about the upload portion of a ClientRequest.
ElectronUploadRawDataRaw data to be uploaded as part of a request body.
ElectronUserDefaultTypesMaps NSUserDefaults type names to their corresponding TypeScript types.
ElectronVisibleOnAllWorkspacesOptionsOptions for ElectronBrowserWindow.setVisibleOnAllWorkspaces.
ElectronWebContentsElectron WebContents for rendering and controlling a web page. Note: the upstream static factories (fromId, fromDevToolsTargetId, getAllWebContents, getFocusedWebContents) cannot be expressed on a plain interface and are therefore omitted here.
ElectronWebContentsDevToolsOptionsOptions for opening developer tools.
ElectronWebContentsModuleThe webContents module accessor exposed by Electron, providing static factory and lookup methods for WebContents instances.
ElectronWebContentsPrintOptionsOptions for printing a web page.
ElectronWebFrameElectron WebFrame for customizing the rendering of the current web page in the renderer process.
ElectronWebFrameMainA frame in the main process, representing a renderer frame. Note: The upstream static fromId(processId, routingId) factory cannot be expressed on a plain interface and is therefore omitted here.
ElectronWebFrameMainModuleThe webFrameMain module accessor exposed on ElectronRemote, distinct from the ElectronWebFrameMain class it returns.
ElectronWebRequestIntercepts and observes a session’s network requests at various life-cycle stages.
ElectronWebRequestFilterFilter used to narrow which requests a web-request listener receives.
ElectronWebSourceA script source to evaluate in an isolated world.
ElectronWebviewTagElectron WebviewTag for embedding external web content in the application.
ElectronWebviewTagFindInPageOptionsOptions for finding text in a webview page.
ElectronWebviewTagPrintOptionsOptions for printing a webview page.
ElectronWillResizeDetailsDetails about a pending window resize, emitted with the will-resize event.
ElectronWindowOpenHandlerResponseResponse returned by the ElectronWebContents.setWindowOpenHandler handler, deciding whether a requested new window is allowed or denied.
IpcRendererEventEvent object passed to IPC renderer event listeners.
SessionElectron session for managing browser sessions, cookies, cache, network, and extensions. Note: The upstream static fromPartition(...) and static defaultSession members cannot be expressed as statics on a plain interface, so they are modelled here as instance members.
WebPreferencesWeb preferences for configuring Electron web content behavior.