Skip to main content

registerIpcHandle

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / main/ipc/ipcRegistry / registerIpcHandle

Function: registerIpcHandle()

registerIpcHandle(channel: GenericInvokeChannel, handler: IpcCallback): void

Defined in: main/ipc/ipcRegistry.ts:47

Registers an IPC handler ensuring the previous handler is safely removed first.

Parameters​

channel​

GenericInvokeChannel

handler​

IpcCallback

Returns​

void

Throws​

Re-throws registration errors for new ipcMain instances.