SBSDKUIScanBarCodeWorkflowStep

@interface SBSDKUIScanBarCodeWorkflowStep : SBSDKUIWorkflowStep

A ‘SBSDKUIWorkflowStep’ subclass specialized on recognizing barcodes/QR codes on 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:(nullable NSString *)title
                      message:(nullable NSString *)message
            acceptedCodeTypes:
                (nullable NSArray<SBSDKBarcodeType *> *)acceptedMachineCodeTypes
        finderViewAspectRatio:(nullable SBSDKAspectRatio *)finderViewAspectRatio
             resultValidation:(nullable SBSDKUIWorkflowStepValidationHandler)
                                  resultValidationHandler;

    Swift

    init(title: String?, message: String?, acceptedCodeTypes acceptedMachineCodeTypes: [SBSDKBarcodeType]?, finderViewAspectRatio: SBSDKAspectRatio?, resultValidation resultValidationHandler: SBSDKUIWorkflowStepValidationHandler? = nil)

    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.

    acceptedMachineCodeTypes

    An array of accepted machine code types.

    finderViewAspectRatio

    The aspect ratio of finder view area. Sets SBSDKScannerViewController.capturingFrameAspectRatio. The barcodes that are in finder view will be scanned. Pass zero aspect ratio or nil to disable finder view.

    resultValidationHandler

    A block to validate the results of the receiver.