مرجع إطار عمل MLKitBarcode Scanner

تعريفات الأنواع

تتوفر تعريفات الأنواع التالية في جميع أنحاء العالم.

  • @enum BarcodeValueType تنسيق قيمة الرمز الشريطي. على سبيل المثال، TEXT وPRODUCT وعنوان URL وما إلى ذلك.

    التعريف

    Swift

    struct BarcodeValueType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeAddressType نوع العنوان.

    التعريف

    Swift

    struct BarcodeAddressType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeEmailType نوع البريد الإلكتروني لـ BarcodeEmail.

    التعريف

    Swift

    struct BarcodeEmailType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodePhoneType نوع الهاتف لـ BarcodePhone.

    التعريف

    Swift

    struct BarcodePhoneType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeWiFiEncryptionType نوع تشفير شبكة Wi-Fi لـ BarcodeWiFi.

    التعريف

    Swift

    struct BarcodeWiFiEncryptionType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • مربّع يحتوي على مصفوفة من الرموز الشريطية أو nil في حال حدوث خطأ.

    التعريف

    Swift

    typealias BarcodeScanningCallback = ([MLKBarcode]?, Error?) -> Void

    المَعلمات

    barcodes

    مصفوفة من الرموز الشريطية الممسوحة ضوئيًا في الصورة أو nil في حال حدوث خطأ

    error

    الخطأ أو nil.