Skip to content

IpcRendererEvent

Unofficial

Event object passed to IPC renderer event listeners.

Import:

import type { IpcRendererEvent } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface IpcRendererEvent extends ElectronEvent

Extends: ElectronEvent

Properties

PropertyTypeDescription
portsMessagePort[]A list of MessagePorts that were transferred with this message.
senderElectronIpcRendererThe IpcRenderer instance that emitted the event originally.
senderIdnumberThe webContents.id that sent the message. Call event.sender.sendTo(event.senderId, ...) to reply to the message; this only applies to messages sent from a different renderer. Messages sent directly from the main process set senderId to 0.

Methods

MethodReturnsDescription
preventDefault()voidPrevents the default action associated with the event.
(Inherited from ElectronEvent)