Status Retrieval Methods
Method | Description |
---|---|
getVersion |
Get version information of SDK. |
setLogConfig |
Set the directory and the saving mode of log. It helps you on debugging. |
getVersion
Get version information of SDK.
static String getVersion()
Return Value
The version of DynamsoftBarcodeReader
Android SDK and DynamsoftBarcodeReader
algorithm.
Code Snippet
String version = BarcodeReader.getVersion();
setLogConfig
Set the directory and the saving mode of log. It helps you on debugging.
void setLogConfig(String logDir, EnumLogMode mode) throws BarcodeReaderException;
Parameters
[in] logDir
: Where to save the log.
[in] mode
: The saving mode of the log.
Exception
An exception is thrown when the directory you input is invalid.
Return Value
A boolean value that indicates whether the log config is approved.
try {
BarcodeReader.setLogConfig("The path of the directory", EnumLogMode.LM_TEXT);
} catch (BarcodeReaderException e) {
e.printStackTrace();
}