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<AVMetadataObjectType> *)acceptedMachineCodeTypes
           finderViewSize:(CGSize)finderViewSize
         resultValidation:
             (nullable SBSDKUIWorkflowStepValidationHandler)resultValidationHandler;

    Swift

    init(title: String?, message: String?, acceptedCodeTypes acceptedMachineCodeTypes: [AVMetadataObject.ObjectType]?, finderViewSize: CGSize, 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.

    finderViewSize

    The size of finder view area. Sets SBSDKScannerViewController.capturingFrameSize. The barcodes that are in finder view will be scanned. Pass CGRectZero to disable finder view.

    resultValidationHandler

    A block to validate the results of the receiver.