MLKitBarcodeScanning Framework Reference

Type Definitions

The following type definitions are available globally.

  • @enum BarcodeValueType Barcode’s value format. For example, TEXT, PRODUCT, URL, etc.

    Declaration

    Objective-C

    typedef NSInteger MLKBarcodeValueType
  • @enum BarcodeAddressType Address type.

    Declaration

    Objective-C

    typedef NSInteger MLKBarcodeAddressType
  • @enum BarcodeEmailType Email type for BarcodeEmail.

    Declaration

    Objective-C

    typedef NSInteger MLKBarcodeEmailType
  • @enum BarcodePhoneType Phone type for BarcodePhone.

    Declaration

    Objective-C

    typedef NSInteger MLKBarcodePhoneType
  • @enum BarcodeWiFiEncryptionType Wi-Fi encryption type for BarcodeWiFi.

    Declaration

    Objective-C

    typedef NSInteger MLKBarcodeWiFiEncryptionType
  • A block containing an array of barcodes or nil if there’s an error.

    Declaration

    Objective-C

    typedef void (^MLKBarcodeScanningCallback)(NSArray<MLKBarcode *> *_Nullable,
                                               NSError *_Nullable)

    Parameters

    barcodes

    Array of barcodes scanned in the image or nil if there was an error.

    error

    The error or nil.