Referensi Framework MLKitBarcodeScanning

Definisi Jenis

Definisi jenis berikut tersedia secara global.

  • @enum BarcodeValueType Format nilai Barcode. Misalnya, TEXT, PRODUCT, URL, dsb.

    Pernyataan

    Swift

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

    Pernyataan

    Swift

    struct BarcodeAddressType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeEmailType Jenis email untuk BarcodeEmail.

    Pernyataan

    Swift

    struct BarcodeEmailType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodePhoneType Jenis telepon untuk BarcodePhone.

    Pernyataan

    Swift

    struct BarcodePhoneType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum BarcodeWiFiEncryptionType Jenis enkripsi Wi-Fi untuk BarcodeWiFi.

    Pernyataan

    Swift

    struct BarcodeWiFiEncryptionType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • Blok yang berisi array kode batang atau nil jika terjadi error.

    Pernyataan

    Swift

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

    Parameter

    barcodes

    Array kode batang yang dipindai pada gambar atau nil jika terjadi error.

    error

    Error atau nil.