Referencia del framework de MLKitBarcodeScanning

Definiciones de tipos

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

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

    Declaración

    Swift

    struct BarcodeValueType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeAddressType.

    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 para BarcodePhone.

    Declaración

    Swift

    struct BarcodePhoneType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeWiFiEncryptionType Tipo de encriptación de 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

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

    error

    El error o nil