MLKitBarcodeScanning Framework Reference

MLKBarcodeScannerOptions


@interface MLKBarcodeScannerOptions : 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

    Objective-C

    @property (nonatomic, readonly) MLKBarcodeFormat formats;
  • Initializes an instance that scans all supported barcode formats.

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Return Value

    A new instance of barcode scanner options.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFormats:(MLKBarcodeFormat)formats;

    Parameters

    formats

    The barcode formats to initialize the barcode scanner options.

    Return Value

    A new instance of barcode scanner options.