Skip to main content

FitFileStateManager

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / shared/fitParser / FitFileStateManager

Interface: FitFileStateManager

Defined in: shared/fitParser.ts:29

FIT file state adapter surface consumed by the FIT parser.

Properties​

updateLoadingProgress​

updateLoadingProgress: (progress: number) => void

Defined in: shared/fitParser.ts:30

Parameters​

progress​

number

Returns​

void


handleFileLoadingError​

handleFileLoadingError: (error: Error) => void

Defined in: shared/fitParser.ts:31

Parameters​

error​

Error

Returns​

void


handleFileLoaded​

handleFileLoaded: (payload: FitFileLoadedPayload, context?: { filePath: string | null; source: string; }) => void

Defined in: shared/fitParser.ts:32

Parameters​

payload​

FitFileLoadedPayload

context?​
filePath​

string | null

source​

string

Returns​

void


getRecordCount​

getRecordCount: (messages: FitMessages) => number

Defined in: shared/fitParser.ts:36

Parameters​

messages​

FitMessages

Returns​

number