DSMRZScanResult
DSMRZScanResult is a result class that contains the parsed MRZ information and the corresponding additional information.
Definition
Assembly: DynamsoftMRZScanner.xcframework
- Objective-C
- Swift
@interface DSMRZScanResult : NSObjectclass MRZScanResult : NSObject
Properties
| Property | Type | Description |
|---|---|---|
data |
DSMRZData | The parsed MRZ information. |
resultStatus |
DSResultStatus | The status of the result, which can be finished, canceled or exception. |
errorCode |
NSInteger | The error code should something go wrong during the MRZ scanning process. |
errorString |
NSString * | The error message associated with the error code should something go wrong during the MRZ scanning process. |
data
The parsed MRZ information as a MRZData object.
- Objective-C
- Swift
@property (nonatomic, readonly) DSMRZData* data;var data: MRZData {get}
resultStatus
The status of the result represented as an EnumResultStatus.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) DSResultStatus resultStatus;var resultStatus: ResultStatus {get}
Return Value
The status of the result, which can be finished, canceled or exception.
DSResultStatusFinished: The MRZ scanning is finished.DSResultStatusCanceled: The MRZ scanning activity is closed before the process is finished.DSResultStatusException: Failed to start MRZ scanning or an error occurs when scanning the MRZ.
errorCode
The error code should something go wrong during the MRZ scanning process.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSInteger errorCode;var errorCode: Int { get }
errorString
The error message associated with the error code should something go wrong during the MRZ scanning process.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSString * errorMessage;var errorMessage: String? { get }