Machine-Readable Object Types

Constants used to specify the type of barcode to scan.

Overview

These constants are used in conjunction with the AVCaptureMetadataOutput class’s metadataObjectTypes property to specify the type (“symbology”) of barcode to scan. When a barcode is detected, the type property of AVMetadataMachineReadableCodeObject reflects the constant for the detected barcode's symbology.

Topics

Constants

AVMetadataObjectTypeUPCECode

AVMetadataMachineReadableCodeObject instances generated from UPC-E codes return this identifier as the type.

AVMetadataObjectTypeCode39Code

AVMetadataMachineReadableCodeObject instances generated from Code 39 codes return this identifier as the type.

AVMetadataObjectTypeCode39Mod43Code

AVMetadataMachineReadableCodeObject instances generated from Code 39 mod 43 codes return this identifier as the type.

AVMetadataObjectTypeEAN13Code

AVMetadataMachineReadableCodeObject instances generated from EAN-13 (including UPC-A) codes return this identifier as the type.

AVMetadataObjectTypeEAN8Code

AVMetadataMachineReadableCodeObject instances generated from EAN-8 codes return this identifier as the type.

AVMetadataObjectTypeCode93Code

AVMetadataMachineReadableCodeObject instances generated from Code 93 codes return this identifier as the type.

AVMetadataObjectTypeCode128Code

AVMetadataMachineReadableCodeObject instances generated from Code 128 codes return this identifier as the type.

AVMetadataObjectTypePDF417Code

AVMetadataMachineReadableCodeObject instances generated from PDF417 codes return this identifier as the type.

AVMetadataObjectTypeQRCode

AVMetadataMachineReadableCodeObject instances generated from QR codes return this identifier as the type.

AVMetadataObjectTypeAztecCode

AVMetadataMachineReadableCodeObject instances generated from Aztec codes return this identifier as the type.

AVMetadataObjectTypeInterleaved2of5Code

AVMetadataMachineReadableCodeObject instances generated from Interleaved 2 of 5 codes return this identifier as the type.

AVMetadataObjectTypeITF14Code

AVMetadataMachineReadableCodeObject instances generated from ITF14 codes return this identifier as the type.

AVMetadataObjectTypeDataMatrixCode

AVMetadataMachineReadableCodeObject instances generated from DataMatrix codes return this identifier as the type.