Utilities included with the Web Barcode Scanner SDK
In addition to numerous view and image processing functions, the Scanbot Web SDK also features various utility functions.
Please note that utilities are available after initialization, under the instance returned by initialize. Therefore, if the SDK initialization fails, the utilities are not available either.
isCameraSupported(): Checks whether the browser or device supports camera access. Please note that this functionality is specifically located underutilsbecause the Scanbot SDK cannot guarantee the reliability of this functionality. Browsers and their functions are, by design, not backwards-compatible or future-proof. In niche situations (browsers, devices) it is bound to produce false positives. Other SDK features (importing an image, applying a filter, etc.) are still available even if the camera is not.flash(): A simple flash animation that you can call in the detection callback to add a bit of flare to your application.
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial license