Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
BarcodeReader
Parameter and Runtime Settings MethodsMethod | Description |
---|---|
getModeArgument |
Get argument value for the specified mode parameter. |
setModeArgument |
Set argument value for the specified mode parameter. |
getRuntimeSettings |
Get current runtime settings. |
resetRuntimeSettings |
Reset runtime settings to default. |
updateRuntimeSettings |
Modify and update the current runtime settings. |
Get the argument value for the specified mode parameter.
getModeArgument(modeName, index, argumentName) returns Promise
modeName
string
index
number
argumentName
string
Promise<string>
Read barcodes from live camera
Set the argument value for the specified mode parameter.
setModeArgument(modeName, index, argumentName, argumentValue) returns Promise
modeName
string
index
number
argumentName
string
argumentValue
string
Promise<void>
await reader.setModeArgument("BinarizationModes", 0, "EnableFillBinaryVacancy", "1");
Read barcodes from live camera
Note: Javascript Edition may not support all available modes listed.
Get the current runtime settings.
getRuntimeSettings() returns Promise
Promise<RuntimeSettings>
Read barcodes from live camera
Reset all runtime settings to default values.
resetRuntimeSettings() returns Promise
Promise<void>
Read barcodes from live camera
Update the runtime settings with a given object or use the string speed
, balance
, or coverage
to use our preset settings for BarcodeReader
. The default setting is coverage
.
updateRuntimeSettings(settings) returns Promise
settings RuntimeSettings
|
string |
Promise<void>
await reader.updateRuntimeSettings('balance');
let settings = await reader.getRuntimeSettings();
settings.barcodeFormatIds = Dynamsoft.EnumBarcodeFormat.BF_ONED;
await reader.updateRuntimeSettings(settings);
latest version