Skip to content

ElectronRemote

Unofficial

Electron @electron/remote module for accessing main process modules from the renderer.

Import:

import type { ElectronRemote } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronRemote

Properties

PropertyTypeDescription
appElectronAppThe main process app instance.
autoUpdaterElectronAutoUpdaterThe main process autoUpdater module.
BrowserViewtypeof ElectronBrowserViewThe BrowserView constructor.
BrowserWindowtypeof ElectronBrowserWindowThe BrowserWindow constructor.
clipboardElectronClipboardThe main process clipboard module.
contentTracingElectronContentTracingThe main process contentTracing module.
crashReporterElectronCrashReporterThe main process crashReporter module.
desktopCapturerElectronDesktopCapturerThe main process desktopCapturer module.
dialogElectronDialogThe main process dialog module.
globalShortcutElectronGlobalShortcutThe main process globalShortcut module.
inAppPurchaseElectronInAppPurchaseThe main process inAppPurchase module. macOS only.
ipcMainElectronIpcMainThe main process ipcMain module.
Menutypeof ElectronMenuThe Menu constructor.
MenuItemtypeof ElectronMenuItemThe MenuItem constructor.
MessageChannelMaintypeof ElectronMessageChannelMainThe MessageChannelMain constructor.
nativeImageElectronNativeImageModuleThe main process nativeImage module.
nativeThemeElectronNativeThemeThe main process nativeTheme module.
netElectronNetThe main process net module.
netLogElectronNetLogThe main process netLog module.
Notificationtypeof ElectronNotificationThe Notification constructor.
powerMonitorElectronPowerMonitorThe main process powerMonitor module.
powerSaveBlockerElectronPowerSaveBlockerThe main process powerSaveBlocker module.
processNodeJS.ProcessThe main process process object.
protocolElectronProtocolThe main process protocol module.
safeStorageElectronSafeStorageThe main process safeStorage module.
screenElectronScreenThe main process screen module.
sessionElectronSessionModuleThe main process session module.
ShareMenutypeof ElectronShareMenuThe ShareMenu constructor. macOS only.
shellElectronShellThe main process shell module.
systemPreferencesElectronSystemPreferencesThe main process systemPreferences module.
TouchBartypeof ElectronTouchBarThe TouchBar constructor. macOS only.
Traytypeof ElectronTrayThe Tray constructor.
webContentsElectronWebContentsModuleThe main process webContents module.
webFrameMainElectronWebFrameMainModuleThe main process webFrameMain module.

Methods

MethodReturnsDescription
createFunctionWithReturnValue(returnValue)() => TWraps a value in a function that returns it, for passing across the remote boundary.
getBuiltin(name)unknownReturns the main process module built into Electron with the given name.
getCurrentWebContents()ElectronWebContentsReturns the web contents of the current renderer process.
getCurrentWindow()ElectronBrowserWindowReturns the BrowserWindow of the current renderer process.
getGlobal(name)unknownReturns the global variable of the given name from the main process.
require(module)unknownReturns the module required from the main process by the given path.

Links to this page: