סימוכין למסגרת של MLKitBarcodescan

הגדרות סוג

הגדרות הסוגים הבאות זמינות בכל העולם.

  • @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 של BarcodeWi-Fi.

    הצהרה

    Swift

    struct BarcodeWiFiEncryptionType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • בלוק שמכיל מערך של ברקודים או nil אם יש שגיאה.

    הצהרה

    Swift

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

    פרמטרים

    barcodes

    מערך ברקודים שנסרקו בתמונה או nil אם הייתה שגיאה.

    error

    השגיאה או nil.