MRZScannerConfig
MRZScannerConfig is the class that defines the configurations for MRZ scanning. It is set via the MRZScannerViewController.
Definition
Assembly: DynamsoftMRZScanner.xcframework
- Objective-C
- Swift
@interface DSMRZScannerConfig : NSObjectclass MRZScannerConfig : NSObject
Properties
| Property | Type | Description |
|---|---|---|
license |
NSString | Sets/Returns the license string. |
templateFile |
NSString * | Sets or returns the template with a file path or a JSON string. |
documentType |
NSString | Sets/Returns the document type to scan, such as ID cards or passports. |
isTorchButtonVisible |
BOOL | Sets/Returns the visibility of the torch button. |
isBeepEnabled |
BOOL | Sets/Returns whether the beep sound is enabled when a MRZ is scanned. |
isVibrateEnabled |
BOOL | Sets/Returns whether the vibration is enabled when a MRZ is scanned. |
isCloseButtonVisible |
BOOL | Sets/Returns the visibility of the close button. |
isGuideFrameVisible |
BOOL | Sets/Returns the visibility of the guide frame on the display. |
The following property is deprecated:
| Property | Type | Description |
|---|---|---|
templateFilePath |
NSString | Sets/Returns the local file path for the JSON parameters template file. |
license
Sets or returns the license string.
- Objective-C
- Swift
@property(nonatomic, assign) NSString* license;var license: String { get set }
templateFile
Sets or returns the template with a file path or a JSON string.
- Objective-C
- Swift
@property(nonatomic, assign) NSString* templateFile;var templateFile: String { get set }
documentType
Sets or returns the document type to scan, such as ID cards or passports.
- Objective-C
- Swift
@property(nonatomic, assign) DSDocumentType documentType;var documentType: DocumentType { get set }
isTorchButtonVisible
Sets or returns the visibility of the torch button. Users can click the torch button to turn on/off the torch.
- Objective-C
- Swift
@property(nonatomic, assign) BOOL isTorchButtonVisible;var isTorchButtonVisible: Bool { get set }
isBeepEnabled
Sets or returns whether the beep sound is enabled when a MRZ is scanned.
- Objective-C
- Swift
@property(nonatomic, assign) BOOL isBeepEnabled;var isBeepEnabled: Bool { get set }
isVibrateEnabled
Sets or returns whether the vibration is enabled when a MRZ is scanned.
- Objective-C
- Swift
@property(nonatomic, assign) BOOL isVibrateEnabled;var isVibrateEnabled: Bool { get set }
isCloseButtonVisible
Sets or returns the visibility of the close button.
- Objective-C
- Swift
@property(nonatomic, assign) BOOL isCloseButtonVisible;var isCloseButtonVisible: Bool { get set }
isGuideFrameVisible
Sets or returns the visibility of the guide frame on the display.
- Objective-C
- Swift
@property(nonatomic, assign) BOOL isGuideFrameVisible;var isGuideFrameVisible: Bool { get set }
templateFilePath
Sets or returns the local file path for the JSON parameters template file.
- Objective-C
- Swift
@property(nonatomic, assign) NSString* templateFilePath;var templateFilePath: String { get set }