VisionBarcodeDetectorOptions

class VisionBarcodeDetectorOptions : NSObject

Options for specifying a Barcode detector.

  • 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: VisionBarcodeFormat { get }
  • Initializes an instance that detects all supported barcode formats.

    Declaration

    Swift

    convenience init()

    Return Value

    A new instance of Firebase barcode detector options.

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

    Declaration

    Swift

    init(formats: VisionBarcodeFormat)

    Parameters

    formats

    The barcode formats to initialize the barcode detector options.

    Return Value

    A new instance of Firebase barcode detector options.