Tài liệu tham khảo về khung MLKitBarcodeScanning

Định nghĩa loại

Các định nghĩa loại sau đây có sẵn trên toàn cầu.

  • @enum BarcodeValueType Định dạng giá trị của mã vạch. Ví dụ: TEXT, SẢN PHẨM, URL, v.v.

    Khai báo

    Objective-C

    typedef NSInteger MLKBarcodeValueType
  • @enum BarcodeAddressType Loại địa chỉ.

    Khai báo

    Objective-C

    typedef NSInteger MLKBarcodeAddressType
  • @enum BarcodeEmailType Loại email dành cho BarcodeEmail.

    Khai báo

    Objective-C

    typedef NSInteger MLKBarcodeEmailType
  • @enum BarcodePhoneType Loại điện thoại dành cho BarcodePhone.

    Khai báo

    Objective-C

    typedef NSInteger MLKBarcodePhoneType
  • @enum BarcodeWiFi encryptedType Loại mã hóa Wi-Fi cho BarcodeWiFi.

    Khai báo

    Objective-C

    typedef NSInteger MLKBarcodeWiFiEncryptionType
  • Một khối chứa một mảng mã vạch hoặc nil nếu có lỗi.

    Khai báo

    Objective-C

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

    Các tham số

    barcodes

    Mảng mã vạch được quét trong hình ảnh hoặc nil nếu có lỗi.

    error

    Lỗi hoặc nil.