IpcRenderer
Functions
Link copied to clipboard
Alias for ipcRenderer.on
.
Link copied to clipboard
abstract fun postMessage( channel: String, message: Any?, transfer: <Error class: unknown class><<Error class: unknown class>> = definedExternally)
Send a message to the main process, optionally transferring ownership of zero or more MessagePort
objects.
Link copied to clipboard
Removes all listeners from the specified channel
. Removes all listeners from all channels if no channel is specified.
Link copied to clipboard
Alias for ipcRenderer.off
.
Link copied to clipboard
Send an asynchronous message to the main process via channel
, along with arguments. Arguments will be serialized with the Structured Clone Algorithm, just like window.postMessage
, so prototype chains will not be included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an exception.
Link copied to clipboard
Like ipcRenderer.send
but the event will be sent to the <webview>
element in the host page instead of the main process.