Page Summary
-
MLKBarcodeFormatis an enum defining the various barcode formats the ML Kit barcode scanning API can detect. -
It includes a wide range of formats such as Code 128, Code 39, QR Code, Data Matrix, EAN-13, and more.
-
Developers can specify which formats to detect, including an option (
MLKBarcodeFormatAll) for detecting all supported formats. -
Each format has a corresponding constant declared in Objective-C, like
MLKBarcodeFormatCode128orMLKBarcodeFormatQRCode. -
An
MLKBarcodeFormatUnknownconstant represents an unidentified barcode format.
MLKBarcodeFormat
enum MLKBarcodeFormat : NSInteger {}Options for specifying the barcode formats that the library can detect.
-
Unknown format.
Declaration
Objective-C
MLKBarcodeFormatUnknown = 0 -
All format.
Declaration
Objective-C
MLKBarcodeFormatAll = 0xFFFF -
Code-128 detection.
Declaration
Objective-C
MLKBarcodeFormatCode128 = 0x0001 -
Code-39 detection.
Declaration
Objective-C
MLKBarcodeFormatCode39 = 0x0002 -
Code-93 detection.
Declaration
Objective-C
MLKBarcodeFormatCode93 = 0x0004 -
Codabar detection.
Declaration
Objective-C
MLKBarcodeFormatCodaBar = 0x0008 -
Data Matrix detection.
Declaration
Objective-C
MLKBarcodeFormatDataMatrix = 0x0010 -
EAN-13 detection.
Declaration
Objective-C
MLKBarcodeFormatEAN13 = 0x0020 -
EAN-8 detection.
Declaration
Objective-C
MLKBarcodeFormatEAN8 = 0x0040 -
ITF detection.
Declaration
Objective-C
MLKBarcodeFormatITF = 0x0080 -
QR Code detection.
Declaration
Objective-C
MLKBarcodeFormatQRCode = 0x0100 -
UPC-A detection.
Declaration
Objective-C
MLKBarcodeFormatUPCA = 0x0200 -
UPC-E detection.
Declaration
Objective-C
MLKBarcodeFormatUPCE = 0x0400 -
PDF-417 detection.
Declaration
Objective-C
MLKBarcodeFormatPDF417 = 0x0800 -
Aztec code detection.
Declaration
Objective-C
MLKBarcodeFormatAztec = 0x1000