UNPKG

@scandit/web-datacapture-core

Version:

Scandit Data Capture SDK for the Web

89 lines (87 loc) 3.39 kB
/// <reference types="emscripten" /> /** * An object containing details about the support level of the used OS/browser combination regarding * the features needed by this library. */ interface BrowserCompatibility { /** * Whether the full set of features required to have continuous camera video streaming are supported. */ readonly fullSupport: boolean; /** * Whether the set of features required to use a [[Scanner]] to perform scans (Single Image Mode) are supported. */ readonly scannerSupport: boolean; /** * The list of features that are missing. */ readonly missingFeatures: Feature[]; } /** * Browser feature. */ declare enum Feature { /** * [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) - * [current support?](https://caniuse.com/#feat=blobbuilder) */ Blob = "blob", /** * [MediaDevices/getUserMedia](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) - * [current support?](https://caniuse.com/#feat=stream) */ MediaDevices = "mediaDevices", /** * [OffscreenCanvas](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas) - * [current support?](https://caniuse.com/#feat=offscreencanvas) */ OffscreenCanvas = "offscreenCanvas", /** * [Http/Https protocol](https://wiki.developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web#Scheme_or_protocol) */ HttpProtocol = "httpProtocol", /** * [Secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) */ SecureContext = "secureContext", /** * [URL/createObjectURL](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) - * [current support?](https://caniuse.com/#feat=bloburls) */ UrlObject = "urlObject", /** * [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) - * [current support?](https://caniuse.com/#feat=webworkers) */ WebWorkers = "webWorkers", /** * [WebAssembly](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/WebAssembly) - * [current support?](https://caniuse.com/#feat=wasm) */ WebAssembly = "webAssembly", /** * WebAssembly without memory corruption (specific iOS version 11.2.2/11.2.5/11.2.6 bug) */ WebAssemblyErrorFree = "webAssemblyErrorFree", /** * [WebGL](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API) - * [current support?](https://caniuse.com/#feat=webgl) */ WebGL = "webGL", /** * [SharedArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) - * [current support?](https://caniuse.com/#feat=sharedarraybuffer) */ SharedArrayBuffer = "sharedArrayBuffer", /** * [CrossOriginIsolated](https://developer.mozilla.org/en-US/docs/Web/API/crossOriginIsolated) - * [current support?](https://caniuse.com/?search=crossoriginisolated) */ CrossOriginIsolated = "crossOriginIsolated", /** * [Web Animation API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API) - * [current support?](https://caniuse.com/web-animation) */ AnimationApi = "animationApi" } export { type BrowserCompatibility, Feature };