registerExternalHandlers
FitFileViewer - API Documentation v29.9.0
FitFileViewer - API Documentation / main/ipc/registerExternalHandlers / registerExternalHandlers
Function: registerExternalHandlers()
registerExternalHandlers(
options: {registerIpcHandle: (channel:string,handler:Function) =>void;shellRef: () =>any;startGyazoOAuthServer: (port?:number) =>Promise<any>;stopGyazoOAuthServer: () =>Promise<any>;logWithContext: (level:"error"|"warn"|"info",message:string,context?:Record<string,any>) =>void; }):void
Defined in: main/ipc/registerExternalHandlers.js:29
Registers IPC handlers for external integrations (shell and Gyazo server control).
Parametersβ
optionsβ
registerIpcHandleβ
(channel: string, handler: Function) => void
shellRefβ
() => any
startGyazoOAuthServerβ
(port?: number) => Promise<any>
stopGyazoOAuthServerβ
() => Promise<any>
logWithContextβ
(level: "error" | "warn" | "info", message: string, context?: Record<string, any>) => void
Returnsβ
void