Skip to main content

ElectronPreloadEventApi

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / shared/preloadApiDomains / ElectronPreloadEventApi

Interface: ElectronPreloadEventApi

Defined in: shared/preloadApiDomains.ts:214

Extended by​

Properties​

onFileOpened?​

optional onFileOpened?: (callback: (fileData: FitMessages, filePath: string) => void) => void

Defined in: shared/preloadApiDomains.ts:216

Fired when a file is opened and parsed in main process.

Parameters​

callback​

(fileData: FitMessages, filePath: string) => void

Returns​

void


notifyFitFileLoaded​

notifyFitFileLoaded: (filePath: string | null) => void

Defined in: shared/preloadApiDomains.ts:220

Notify main process of the currently loaded file (or null when cleared).

Parameters​

filePath​

string | null

Returns​

void


onUpdateEvent​

onUpdateEvent: (eventName: UpdateEventName, callback: (...args: IpcResponsePayload[]) => void) => (() => void) | undefined

Defined in: shared/preloadApiDomains.ts:221

Parameters​

eventName​

UpdateEventName

callback​

(...args: IpcResponsePayload[]) => void

Returns​

(() => void) | undefined