MLKitBarcodeScanning Framework Reference

  • BarcodeFormat is an OptionSet defining the barcode types a library can detect, including common formats like QR Code, UPC-A, EAN-13, and more.

  • It provides options for detecting specific barcode formats or enabling detection for all supported formats using the all property.

  • Each barcode format, like code128, qrCode, dataMatrix, etc., has a corresponding static property within the BarcodeFormat structure.

  • The library is implemented in Swift and provides declarations for each barcode format property.

BarcodeFormat

struct BarcodeFormat : OptionSet

Options for specifying the barcode formats that the library can detect.

  • Unknown format.

  • all

    All format.

    Declaration

    Swift

    static var all: BarcodeFormat { get }
  • Code-128 detection.

    Declaration

    Swift

    static var code128: BarcodeFormat { get }
  • Code-39 detection.

    Declaration

    Swift

    static var code39: BarcodeFormat { get }
  • Code-93 detection.

    Declaration

    Swift

    static var code93: BarcodeFormat { get }
  • Codabar detection.

    Declaration

    Swift

    static var codaBar: BarcodeFormat { get }
  • Data Matrix detection.

    Declaration

    Swift

    static var dataMatrix: BarcodeFormat { get }
  • EAN-13 detection.

    Declaration

    Swift

    static var EAN13: BarcodeFormat { get }
  • EAN-8 detection.

    Declaration

    Swift

    static var EAN8: BarcodeFormat { get }
  • ITF

    ITF detection.

    Declaration

    Swift

    static var ITF: BarcodeFormat { get }
  • QR Code detection.

    Declaration

    Swift

    static var qrCode: BarcodeFormat { get }
  • UPC-A detection.

    Declaration

    Swift

    static var UPCA: BarcodeFormat { get }
  • UPC-E detection.

    Declaration

    Swift

    static var UPCE: BarcodeFormat { get }
  • PDF-417 detection.

    Declaration

    Swift

    static var PDF417: BarcodeFormat { get }
  • Aztec code detection.

    Declaration

    Swift

    static var aztec: BarcodeFormat { get }