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.
- Objective-C
- Swift
+ (NSString *_Nullable)getVersion;
class func getVersion() -> String?
Return Value
The version of DynamsoftBarcodeReader
iOS SDK and DynamsoftBarcodeReader
algorithm.
Code Snippet
- Objective-C
- Swift
NSString *version = [DynamsoftBarcodeReader getVersion];
let version = DynamsoftBarcodeReader.getVersion();
setLogConfig
Set the directory and the saving mode of log. It helps you on debugging.
- Objective-C
- Swift
- (BOOL)setLogConfig:(NSString*)logDir mode:(EnumLogMode)mode error:(NSError* _Nullable * _Nullable)error;
func setLogConfig(_ logDir: String, mode: Int) throws
Parameters
[in] logDir
: Where to save the log.
[in] mode
: The saving mode of the log.
[in,out] error
: A pointer to an error object.
An error occurs when:
- The directory you input is invalid.
Return Value
A boolean value that indicates whether the log config is approved.
Code Snippet
- Objective-C
- Swift
[DynamsoftBarcodeReader setLogConfig:"" mode:EnumLogMode.LM_TEXT error:nil];
do{ try DynamsoftBarcodeReader.setLogConfig("", mode:EnumLogMode.LM_TEXT, error:nil); }catch{ // Add your code to deal with exceptions }