MLKitBarcodeScanning Framework Reference

BarcodeScannerOptions

class BarcodeScannerOptions : NSObject

Options for specifying a barcode scanner.

  • The barcode formats detected in an image. Note that the detection time will increase for each additional format that is specified.

    Declaration

    Swift

    var formats: BarcodeFormat { get }
  • Initializes an instance that scans all supported barcode formats.

    Declaration

    Swift

    convenience init()

    Return Value

    A new instance of barcode scanner options.

  • Initializes an instance with the given barcode formats to look for.

    Declaration

    Swift

    init(formats: BarcodeFormat)

    Parameters

    formats

    The barcode formats to initialize the barcode scanner options.

    Return Value

    A new instance of barcode scanner options.