SBSDKMedicalCertificateScannerViewController
@interface SBSDKMedicalCertificateScannerViewController
: SBSDKBaseScannerViewController
Classic UI viewcontroller 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) id<SBSDKMedicalCertificateScannerViewControllerDelegate> _Nullable delegate;
Swift
weak var delegate: SBSDKMedicalCertificateScannerViewControllerDelegate? { get set }
-
Not available.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Not available.
Declaration
Objective-C
+ (nonnull instancetype)new;
-
Designated initializer. Installs the medical certificate scanner as child view controller onto the parent viewcontrollers view hierarchy.
Declaration
Objective-C
- (nullable instancetype) initWithParentViewController: (nullable UIViewController *)parentViewController parentView:(nullable UIView *)containerView delegate: (nonnull id< SBSDKMedicalCertificateScannerViewControllerDelegate>) delegate;
Swift
init?(parentViewController: UIViewController?, parentView containerView: UIView?, delegate: SBSDKMedicalCertificateScannerViewControllerDelegate)
Parameters
parentViewController
The view controller the newly created instance is embedded into. If parentViewController conforms to SBSDKMedicalCertificateScannerViewControllerDelegate, it is automatically set as delegate.
containerView
The view the newly created instance is embedded into. If nil the parent viewcontrollers view is used.
delegate
The delegate of the medical certificate scanner.