LoadingStatus

Defined under the namespace Scandit.Datacapture.Core

ProgressInfo
interface ProgressInfo

Added in version 6.17.0

percentage
percentage: number | null

Added in version 6.17.0

loadedBytes
loadedBytes?: number

Added in version 6.17.0

LoadingStatusSubscriber
interface LoadingStatusSubscriber

Added in version 6.17.0

A function that will called with ProgressInfo. Note that the listener must subscribe before configuring the library

import * as SDCCore from "scandit-web-datacapture-core";

SDCCore.loadingStatus.subscribe((progressInfo) => {
    // progressInfo.percentage
    // progressInfo.loadedBytes
})
LoadingStatus
class LoadingStatus

Added in version 6.17.0

subscribe(subscriber)
subscribe(subscriber: LoadingStatusSubscriber): void

Added in version 6.17.0

A function to subscribe to fetch .wasm loading progress

unsubscribe(subscriber)
unsubscribe(subscriber: LoadingStatusSubscriber): void

Added in version 6.17.0

A function to unsubscribe a LoadingStatusSubscriber previously added