DLBarcodeMgr
Summary
The DLBarcodeMgr namespace handles the configuration and use of the device's scanner. The interface described here is found in dl_barcode.js
.
Functions
Function | Description |
---|---|
commitProperties | Commit scanner property values. |
enableAllSymbologies | Enable/disable all symbologies. |
getMax | Get the maximum value of a scanner property. |
getMin | Get the minimum value of a scanner property. |
getProperty | Get the value of a scanner property. |
ignoreScan | Remove any callback function from the scan event. |
ignoreTimeout | Remove any callback function from the timeout event. |
isAvailable | Check if a scanner property is available. |
isInitialized | Check if the scanner service is correctly initialized. |
onScan | Attach a callback function to the scan event. |
onTimeout | Attach a callback function to the timeout event. |
setDefaults | Set scanner properties to system defaults. |
setProperties | Set the values of a list of scanner properties. |
setProperty | Set the value of a scanner property. |
startDecode | Start scanning with a given timeout. |
stopDecode | Stop any scanning currently in progress. |
Constants
Constants | Description |
---|---|
DL_BARCODE_MGR_VER | The version of DLBarcodeMgr. |
BcdPropIds | Scanner property identifiers. |
SymIds | Symbology identifiers. |
BeamMode | Scan beam operating mode. |
CharacterSetMode | Character set encoding for a symbology. |
Code128Aggressiveness | Code 128 aggressiveness level. |
Code39Aggressiveness | Code 39 aggressiveness level. |
DatamatrixAggressiveness | Data Matrix aggressiveness level. |
DatamatrixMirror | Allow regular/mirror Data Matrix labels. |
DatamatrixOpMode | Data Matrix decoding mode. |
ECIPolicy | ECI transmission policy. |
IlluminationTime | Scan illumination time. |
IlluminationType | Scan illumination type. |
ImageCaptureProfile | Scanner profile for image capture. |
IntentDeliveryMode | Method for issuing intents. |
Interleaved25Aggressiveness | Interleaved 2/5 aggressiveness level. |
InverseMode | Allow regular/reverse labels. |
Isbt128Mode | Allow regular/reverse ISBT 128 labels. |
KeyWedgeMode | Method of keyboard wedge input. |
LengthControlMode | Handling of symbology length parameters. |
MsiAggressiveness | MSI aggressiveness level. |
PartialResultMode | Handling for partial multi-scan results. |
ScanMode | Scanning mode. |
SendCodeID | Code ID transmission mode. |
ToneNotificationChannel | Good read audio notification channel. |
ToneNotificationMode | Good read audio notification tone. |
UpcEanAggressiveness | UPC/EAN aggressiveness level. |
UpcEanCompositeMode | GS1 Composite transmission with UPC/EAN labels. |
Functions
commitProperties
commitProperties(): boolean
Commit scanner property values to persistent across a system reboot.
Returns
True if the commit was successful.
Example
if (!DLBarcodeMgr.commitProperties()) {
alert("Error saving scanner properties.");
}
enableAllSymbologies
enableAllSymbologies(enable: boolean): boolean
Enable (or disable) all barcode symbologies.
Parameters
- enable: Set true to enable all symbologies, false to disable all symbologies.
Returns
True if the property changes were successful.
Example
if (!DLBarcodeMgr.enableAllSymbologies(false)) {
alert("Error disabling all symbologies.");
}
getMax
getMax(id: number): any
Get the maximum value of a scanner property.