Documentation de référence sur le framework MLKitBarcodeScanning

Définitions des types

Les définitions de type suivantes sont disponibles dans le monde entier.

  • @enum BarcodeValueType Format de valeur du code-barres. Par exemple : TEXTE, PRODUIT, URL, etc.

    Déclaration

    Swift

    struct BarcodeValueType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeAddressType Type d'adresse.

    Déclaration

    Swift

    struct BarcodeAddressType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeEmailType Type d'adresse e-mail pour BarcodeEmail.

    Déclaration

    Swift

    struct BarcodeEmailType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodePhoneType Type de téléphone pour BarcodePhone.

    Déclaration

    Swift

    struct BarcodePhoneType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeWiFiEncryptionType Type de chiffrement Wi-Fi pour BarcodeWiFi.

    Déclaration

    Swift

    struct BarcodeWiFiEncryptionType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • Un bloc contenant un tableau de codes-barres ou nil en cas d'erreur.

    Déclaration

    Swift

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

    Paramètres

    barcodes

    Tableau des codes-barres scannés dans l'image ou nil en cas d'erreur.

    error

    L'erreur ou nil.