@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
37 lines (34 loc) • 1.57 kB
TypeScript
import { LocationSelectionJSON, JSONType } from '@scandit/web-datacapture-core';
import { Serializable } from '@scandit/web-datacapture-core/build/js/private/Serializable';
import { Symbology, CompositeType } from '../Barcode.js';
import { ScanIntention } from '../ScanIntention.js';
import { SymbologySettingsJSON, SymbologySettings } from '../SymbologySettings.js';
import '../EncodingRange.js';
import '../StructuredAppendData.js';
interface SparkScanSettingsJSON {
codeDuplicateFilter: number;
enabledCompositeTypes: string[];
locationSelection: LocationSelectionJSON;
symbologies: Record<Symbology, SymbologySettingsJSON>;
properties: Record<string, JSONType>;
scanIntention: ScanIntention | null;
}
declare class SparkScanSettings implements Serializable<SparkScanSettingsJSON> {
codeDuplicateFilter: number;
enabledCompositeTypes: CompositeType[];
scanIntention?: ScanIntention;
private locationSelection;
private properties;
private symbologies;
constructor();
get enabledSymbologies(): Symbology[];
private get compositeTypeDescriptions();
settingsForSymbology(symbology: Symbology): SymbologySettings;
setProperty(name: string, value: any): void;
getProperty(name: string): any;
enableSymbologies(symbologies: Symbology[]): void;
enableSymbology(symbology: Symbology, enabled: boolean): void;
enableSymbologiesForCompositeTypes(compositeTypes: CompositeType[]): void;
toJSONObject(): SparkScanSettingsJSON;
}
export { SparkScanSettings, type SparkScanSettingsJSON };