Android API Reference - BarcodeReader Parameter and Runtime Settings Basic Methods
Method | Description |
---|---|
getRuntimeSettings |
Get current runtime settings. |
updateRuntimeSettings |
Modify and update the current runtime settings. |
resetRuntimeSettings |
Reset runtime settings to default. |
getRuntimeSettings
Get current settings and save them into a PublicRuntimeSettings
struct.
PublicRuntimeSettings com.dynamsoft.barcode.BarcodeReader.getRuntimeSettings() throws BarcodeReaderException
Return value
The struct of template settings.
Exceptions
Code Snippet
BarcodeReader reader = new BarcodeReader("t0260NwAAAHV***************");
PublicRuntimeSettings settings = reader.getRuntimeSettings();
updateRuntimeSettings
Update runtime settings with a given PublicRuntimeSettings
struct.
void com.dynamsoft.barcode.BarcodeReader.updateRuntimeSettings(PublicRuntimeSettings settings) throws BarcodeReaderException
Parameters
settings
: The struct of template settings.
Exceptions
Code Snippet
BarcodeReader reader = new BarcodeReader("t0260NwAAAHV***************");
PublicRuntimeSettings settings = reader.getRuntimeSettings();
settings.deblurLevel = 9;
reader.updateRuntimeSettings(settings);
resetRuntimeSettings
Reset all parameters to default values.
void com.dynamsoft.barcode.BarcodeReader.resetRuntimeSettings() throws BarcodeReaderException
Exceptions
BarcodeReaderException
Code Snippet
BarcodeReader reader = new BarcodeReader("t0260NwAAAHV***************");
PublicRuntimeSettings settings = reader.getRuntimeSettings();
settings.deblurLevel = 9;
reader.updateRuntimeSettings(settings);
reader.resetRuntimeSettings();