SBSDKMedicalCertificateScannerViewController
@interface SBSDKMedicalCertificateScannerViewController
: SBSDKBaseScannerViewController
Classic UI view controller that can be used to detect and recognize medical certificates. Can be configured to recognize on video frames or, for better accuracy, on high-res photos that are automatically captured.
-
The current state of the medical certificate scanner.
Declaration
Objective-C
@property (nonatomic, readonly) SBSDKMedicalCertificateScannerState state;
Swift
var state: SBSDKMedicalCertificateScannerState { get }
-
Whether the information of the patient (name, address) is extracted or not. The default value is YES.
Declaration
Objective-C
@property (nonatomic) BOOL extractPatientInfo;
Swift
var extractPatientInfo: Bool { get set }
-
Whether eventual barcodes or data matrices on the medical certificates extracted or not. The default value is YES.
Declaration
Objective-C
@property (nonatomic) BOOL extractBarcode;
Swift
var extractBarcode: Bool { get set }
-
If set to YES a high-resolution photo of the medical certificate is captured to run the recognition on. Upon successful recognition the recognition result also contains a high-resolution image of the medical certificate. If set to NO, the video frames will be used for recognition and result image delivery. The default value is YES.
Declaration
Objective-C
@property (nonatomic) BOOL captureHighResolutionImage;
Swift
var captureHighResolutionImage: Bool { get set }
-
The delegate of the receiver.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKMedicalCertificateScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKMedicalCertificateScannerViewControllerDelegate? { get set }
-
Installs the receiver as child view controller onto the parent view controllers view using its entire bounds area.
Declaration
Objective-C
- (nullable instancetype) initWithParentViewController: (nonnull UIViewController *)parentViewController parentView:(nonnull UIView *)parentView delegate: (nullable id< SBSDKMedicalCertificateScannerViewControllerDelegate>) delegate;
Swift
init?(parentViewController: UIViewController, parentView: UIView, delegate: SBSDKMedicalCertificateScannerViewControllerDelegate?)
Parameters
parentViewController
The view controller the newly created instance is embedded into.
parentView
The view the newly created instance is embedded into.
delegate
The delegate of the medical certificate scanner.