Documentation de référence sur le framework MLKitBarcodeScanning

Définitions de type

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

  • @enum BarcodeValueTypeFormat de valeur du code-barres. (par exemple, TEXT, PRODUCT, 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'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
  • 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.