IpcMainEvent オブジェクト extends Event
processId
Integer - このメッセージを送信したレンダラープロセスの内部 IDframeId
Integer - このメッセージを送信したレンダラーフレームの IDreturnValue
any - 非同期メッセージで返された値がこれにセットされますsender
WebContents - Returns thewebContents
that sent the messagesenderFrame
WebFrameMain | null Readonly - The frame that sent this message. May benull
if accessed after the frame has either navigated or been destroyed.ports
MessagePortMain[] - A list of MessagePorts that were transferred with this messagereply
Function - 現在処理している元々のメッセージを送信したレンダラーフレームに IPC メッセージを送信する関数です。 返信が正しいプロセスとフレームに行くことを保証するために、送信されたメッセージに "返信" する際はこのメソッドを使うべきです。channel
string...args
any[]