IpcMainEvent 对象继承自 Event
🌐 IpcMainEvent Object extends Event
typeString - 可能的值包括frameprocessIdInteger - 发送此消息的渲染器进程的内部IDframeIdInteger - 发送此消息的渲染器框架的IDreturnValueany - 将此设置为在同步消息中返回的值senderWebContents - 返回发送消息的webContentssenderFrameWebFrameMain | null Readonly - 发送此消息的框架。如果在框架导航或被销毁后访问,可能是null。portsMessagePortMain[] - 随此消息传递的 MessagePorts 列表replyFunction - 一个函数,将向发送原始消息的渲染器框架发送 IPC 消息。你应该使用此方法“回复”已发送的消息,以保证回复将发送到正确的进程和框架。channel字符串...argsany[]