MLKitBarcodeScanning 架構參考資料

類型定義

下列類型定義適用於全球。

  • @enum BarcodeValueType 條碼的值格式例如 TEXT、PRODUCT 和網址等。

    聲明

    Objective-C

    typedef NSInteger MLKBarcodeValueType
  • @enum BarcodeAddressType 地址類型。

    聲明

    Objective-C

    typedef NSInteger MLKBarcodeAddressType
  • @enum BarcodeEmailType BarcodeEmail 的電子郵件類型。

    聲明

    Objective-C

    typedef NSInteger MLKBarcodeEmailType
  • @enum BarcodePhoneType BarcodePhone 的電話類型。

    聲明

    Objective-C

    typedef NSInteger MLKBarcodePhoneType
  • @enum BarcodeWiFiEncryptionType BarcodeWiFi 的 Wi-Fi 加密類型。

    聲明

    Objective-C

    typedef NSInteger MLKBarcodeWiFiEncryptionType
  • 包含條碼陣列的區塊,或發生錯誤時所在的區塊。nil

    聲明

    Objective-C

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

    參數

    barcodes

    在圖片中掃描的條碼陣列,如果發生錯誤,則 nil

    error

    錯誤或 nil