<!--
{
  "documentType" : "article",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/machine-readable-object-types",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Machine-readable object types"
}
-->

# Machine-readable object types

Constants used to specify the type of barcode to scan.

## Discussion

These constants are used in conjunction with the [`AVCaptureMetadataOutput`](/documentation/AVFoundation/AVCaptureMetadataOutput) class’s [`metadataObjectTypes`](/documentation/AVFoundation/AVCaptureMetadataOutput/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

[`upce`](/documentation/AVFoundation/AVMetadataObject/ObjectType/upce)

A constant that identifies the UPC-E symbology.

[`code39`](/documentation/AVFoundation/AVMetadataObject/ObjectType/code39)

A constant that identifies the Code 39 symbology.

[`code39Mod43`](/documentation/AVFoundation/AVMetadataObject/ObjectType/code39Mod43)

A constant that identifies the Code 39 mod 43 symbology.

[`ean13`](/documentation/AVFoundation/AVMetadataObject/ObjectType/ean13)

A constant that identifies the EAN-13 symbology.

[`ean8`](/documentation/AVFoundation/AVMetadataObject/ObjectType/ean8)

A constant that identifies the EAN-8 symbology.

[`code93`](/documentation/AVFoundation/AVMetadataObject/ObjectType/code93)

A constant that identifies the Code 93 symbology.

[`code128`](/documentation/AVFoundation/AVMetadataObject/ObjectType/code128)

A constant that identifies the Code 128 symbology.

[`pdf417`](/documentation/AVFoundation/AVMetadataObject/ObjectType/pdf417)

A constant that identifies the PDF417 symbology.

[`qr`](/documentation/AVFoundation/AVMetadataObject/ObjectType/qr)

A constant that identifies the QR symbology.

[`aztec`](/documentation/AVFoundation/AVMetadataObject/ObjectType/aztec)

A constant that identifies the Aztec symbology.

[`interleaved2of5`](/documentation/AVFoundation/AVMetadataObject/ObjectType/interleaved2of5)

A constant that identifies the Interleaved 2 of 5 symbology.

[`itf14`](/documentation/AVFoundation/AVMetadataObject/ObjectType/itf14)

A constant that identifies the ITF14 symbology.

[`dataMatrix`](/documentation/AVFoundation/AVMetadataObject/ObjectType/dataMatrix)

A constant that identifies the DataMatrix symbology.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)