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

static let upce: AVMetadataObject.ObjectType

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

static let code39: AVMetadataObject.ObjectType

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

static let code39Mod43: AVMetadataObject.ObjectType

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

static let ean13: AVMetadataObject.ObjectType

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

static let ean8: AVMetadataObject.ObjectType

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

static let code93: AVMetadataObject.ObjectType

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

static let code128: AVMetadataObject.ObjectType

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

static let pdf417: AVMetadataObject.ObjectType

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

static let qr: AVMetadataObject.ObjectType

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

static let aztec: AVMetadataObject.ObjectType

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

static let interleaved2of5: AVMetadataObject.ObjectType

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

static let itf14: AVMetadataObject.ObjectType

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

static let dataMatrix: AVMetadataObject.ObjectType

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