SBSDKUIScanMachineReadableZoneWorkflowStep
@interface SBSDKUIScanMachineReadableZoneWorkflowStep : SBSDKUIWorkflowStep
A ‘SBSDKUIWorkflowStep’ subclass specialized on recognizing machine readable zones (MRZ) on either high-res still images or low-res video frames (live detection).
-
Not available.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Not available.
Declaration
Objective-C
+ (nonnull instancetype)new;
-
Designated initializer.
Declaration
Objective-C
- (nonnull instancetype)initWithTitle:(nonnull NSString *)title message:(nonnull NSString *)message requiredAspectRatios: (nonnull NSArray<SBSDKAspectRatio *> *)requiredAspectRatios wantsCapturedPage:(BOOL)wantsCapturedPage resultValidation: (nonnull SBSDKUIWorkflowStepValidationHandler) resultValidationHandler;
Swift
init(title: String, message: String, requiredAspectRatios: [SBSDKAspectRatio], wantsCapturedPage: Bool, resultValidation resultValidationHandler: @escaping SBSDKUIWorkflowStepValidationHandler)
Parameters
title
The title being displayed in the ‘SBSDKUIWorkflowScannerViewController’ while it processes the receiver.
message
A message being displayed in the ‘SBSDKUIWorkflowScannerViewController’ while it processes the receiver.
requiredAspectRatios
An array of required aspect ratios if this step uses document detection.
wantsCapturedPage
Set to YES, if the receiver requires a high-resolution still image shot for its processing. If set to NO, and no requiredAspectRatios are set, it works as a live video frame detector.
resultValidationHandler
A block to validate the results of the receiver.