IpcMainServiceWorker Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ✔
Instance members
| Instance member |
Description
|
Full Usage:
this.handle (channel, listener)
Parameters:
string
listener : IpcMainServiceWorkerInvokeEvent * obj[] -> U2<Promise<obj>, obj>
Modifiers: inline |
|
Full Usage:
this.handleOnce (channel, listener)
Parameters:
string
listener : IpcMainServiceWorkerInvokeEvent * obj[] -> U2<Promise<obj>, obj>
Modifiers: inline |
Handles a single invokeable IPC message, then removes the listener. See ipcMainServiceWorker.handle(channel, listener).
|
Full Usage:
this.on (channel, listener)
Parameters:
string
listener : IpcMainServiceWorkerEvent * obj[] -> unit
Modifiers: inline |
Listens to channel, when a new message arrives listener would be called with listener(event, args...).
|
Full Usage:
this.once (channel, listener)
Parameters:
string
listener : IpcMainServiceWorkerEvent * obj[] -> unit
Modifiers: inline |
Adds a one time listener function for the event. This listener is invoked only the next time a message is sent to channel, after which it is removed.
|
Full Usage:
this.removeAllListeners ?channel
Parameters:
string
Modifiers: inline |
Removes listeners of the specified channel.
|
Full Usage:
this.removeHandler channel
Parameters:
string
Modifiers: inline |
Removes any handler for channel, if present.
|
Full Usage:
this.removeListener (channel, listener)
Parameters:
string
listener : obj[] -> unit
Modifiers: inline |
Removes the specified listener from the listener array for the specified channel.
|
fable-electron-docs-api