Page Summary
-
MLKBarcodeScannerOptions allows you to configure the barcode scanner, including specifying the barcode formats to detect.
-
By default, the scanner is initialized to detect all supported barcode formats.
-
You can customize the scanner to detect specific barcode formats using the
initWithFormats:method, which can impact detection time. -
The
formatsproperty provides read-only access to the set of barcode formats that the scanner is configured to detect.
MLKBarcodeScannerOptions
@interface MLKBarcodeScannerOptions : NSObjectOptions 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
formatsThe barcode formats to initialize the barcode scanner options.
Return Value
A new instance of barcode scanner options.