---
title: metadataObjectTypes
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturemetadataoutput/metadataobjecttypes
---

# metadataObjectTypes

An array of strings identifying the types of metadata objects  to process.

## Declaration

```swift
var metadataObjectTypes: [AVMetadataObject.ObjectType]! { get set }
```

## Discussion

Discussion This property is used to filter the metadata objects reported by the receiver. Only metadata objects whose type matches one of the strings in this property are forwarded to the delegate’s metadataOutput(_:didOutput:from:) method for processing. When assigning a new array to this property, each of the type strings must be present in the array returned by the availableMetadataObjectTypes property; otherwise, the receiver raises anNSException. The default is an empty NSArray object, and as a result, no metadata objects are forwarded to the delegate’s metadataOutput(_:didOutput:from:) method. The same result can be achieved by setting the property to nil. This default behavior maximizes both performance and battery life. note: Applications linked prior to iOS 7.0 will pass AVMetadataFaceObject objects to the delegate by default, if supported by the device.

## See Also

### Configuring metadata capture

- [availableMetadataObjectTypes](avfoundation/avcapturemetadataoutput/availablemetadataobjecttypes.md)
- [rectOfInterest](avfoundation/avcapturemetadataoutput/rectofinterest.md)
- [requiredMetadataObjectTypesForCinematicVideoCapture](avfoundation/avcapturemetadataoutput/requiredmetadataobjecttypesforcinematicvideocapture.md)
