@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
16 lines • 803 B
TypeScript
import { t as ScanIntention } from "../ScanIntention-BGrIZvQ0.js";
import { DataCaptureContext, Optional } from "@scandit/web-datacapture-core";
//#region src/main/private/smartScanIntentionHelper.d.ts
/**
* Ensures that scanIntention is downgraded to Manual if the device
* lacks required capabilities (threadsSupport or simdSupport).
*
* @param settings - Settings object with optional scanIntention property
* @param capabilityInfo - Device capability information
* @returns The settings object with potentially modified scanIntention
*/
declare function ensureSmartScanIntentionSupport<T extends {
scanIntention?: Optional<ScanIntention>;
}>(settings: T, capabilityInfo: (typeof DataCaptureContext)["capabilityInfo"] | undefined): T;
//#endregion
export { ensureSmartScanIntentionSupport };