Referencia del framework de MLKitBarcodeScanning

Definiciones de tipos

Las siguientes definiciones de tipos están disponibles de manera global.

  • @enum. BarcodeValueType Formato de valor del código de barras. Por ejemplo, TEXT, PRODUCT, URL, etcétera.

    Declaración

    Swift

    struct BarcodeValueType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum.BarcodeAddressType Tipo de dirección.

    Declaración

    Swift

    struct BarcodeAddressType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum.BarcodeEmailType Tipo de correo electrónico para BarcodeEmail.

    Declaración

    Swift

    struct BarcodeEmailType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum. BarcodePhoneType Tipo de teléfono de BarcodePhone.

    Declaración

    Swift

    struct BarcodePhoneType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum. BarcodeWiFiEncryptionType Tipo de encriptación Wi-Fi para BarcodeWiFi.

    Declaración

    Swift

    struct BarcodeWiFiEncryptionType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • Un bloque que contiene un array de códigos de barras o nil si hay un error.

    Declaración

    Swift

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

    Parámetros

    barcodes

    Array de códigos de barras escaneados en la imagen o nil si hubo un error.

    error

    El error o nil.