---
title: AVMetadataMachineReadableCodeObject
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avmetadatamachinereadablecodeobject
---

# AVMetadataMachineReadableCodeObject

Barcode information detected by a metadata capture output.

## Declaration

```swift
class AVMetadataMachineReadableCodeObject
```

## Overview

Overview The AVMetadataMachineReadableCodeObject class is a concrete subclass of AVMetadataObject defining the features of a detected one-dimensional or two-dimensional barcode. An AVMetadataMachineReadableCodeObject instance represents a single detected machine readable code in an image.  It’s an immutable object describing the features and payload of a barcode. On supported platforms, the AVCaptureMetadataOutput class outputs arrays of detected machine readable code objects.

## Topics

### Getting machine-readable code values

- [corners](avfoundation/avmetadatamachinereadablecodeobject/corners-58qbe.md)
- [descriptor](avfoundation/avmetadatamachinereadablecodeobject/descriptor.md)
- [stringValue](avfoundation/avmetadatamachinereadablecodeobject/stringvalue.md)

### Constants

- [Machine-readable object types](avfoundation/machine-readable-object-types.md)

## Relationships

### Inherits From

- [AVMetadataObject](avfoundation/avmetadataobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
