Optional
allowOptional
bestOn devices with multiple cameras, it is difficult to choose which camera to use for scanning.
You can choose from several different automatic detection strategies described by
CameraDetectionStrategy.
Defaults to FAST_DEFERRED
.
Location of the Core WebAssembly Engine. Mandatory.
Scanbot Web SDK License key. Required
Optional
onThe completion handler is called when deferred initialization is complete, i.e. when the WASM binary has been loaded. This will only be called after the SDK has been successfully initialized or if an error occurred, in which case the error parameter will be evaluated, otherwise undefined.
Optional
e: ErrorOptional
requestThe requestSuffix is appended to the HTTP requests made by the SDK to load necessary WASM and JS files. It is meant to avoid any caching issues that may arise when the SDK is updated. Defaults to '?CURRENT_SDK_VERSION'.
Optional
verboseDetermines whether the SDK should log debug messages. Defaults to false.
Generated using TypeDoc
Determines whether the SDK should use multithreading. Defaults to true. Multithreading will only affect supported Android devices and desktop browsers. Multithreading on iOS is currently not supported. On supported devices, multithreading will improve performance significantly. Note that multithreading will only work on crossOriginIsolated sites. To enable this for your site, certain HTTP headers need to be set. Please consult our documentation for more information. If multithreading was requested but the site is not in a crossOriginIsolated context, the SDK will print a warning and fallback to single-threaded operation.