MBBarcodeRecognizerResult


@interface MBBarcodeRecognizerResult : MBRecognizerResult <NSCopying>

Result of MBBarcodeRecognizer; is used for scanning most of 1D barcode formats, and 2D format such as Aztec, DataMatrix and QR code

  • Undocumented

    Declaration

    Objective-C

    MB_INIT_UNAVAILABLE
  • Byte array with result of the scan

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSData *rawData;

    Swift

    var rawData: Data? { get }
  • Retrieves string content of scanned data

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSString *stringData;

    Swift

    var stringData: String? { get }
  • Flag indicating uncertain scanning data E.g obtained from damaged barcode.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) BOOL uncertain;

    Swift

    var uncertain: Bool { get }
  • Method which gives string representation for a given PPBarcodeType enum value.

    Declaration

    Objective-C

    + (NSString *_Nonnull)toTypeName:(MBBarcodeType)type;

    Swift

    class func toTypeName(_ type: MBBarcodeType) -> String

    Parameters

    type

    PPBarcodeType enum value

    Return Value

    String representation of a given PPBarcodeType enum value.

  • Type of the barcode scanned

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) MBBarcodeType barcodeType;

    Swift

    var barcodeType: MBBarcodeType { get }

    Return Value

    Type of the barcode