<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMetadataObject",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMetadataObject"
  },
  "title" : "AVMetadataObject"
}
-->

# AVMetadataObject

The abstract superclass for objects provided by a metadata capture output.

```
class AVMetadataObject
```

## Overview

The `AVMetadataObject` class is an abstract class that defines the basic properties associated with a piece of metadata. These attributes reflect information either about the metadata itself or the media from which the metadata originated. Subclasses are responsible for providing appropriate values for each of the relevant properties.

You shouldn’t subclass `AVMetadataObject` directly. Instead, you use one of the defined subclasses provided by the AVFoundation framework. Similarly, you don’t create instances of this class yourself but use an [`AVCaptureMetadataOutput`](/documentation/AVFoundation/AVCaptureMetadataOutput) object to retrieve them from the captured data.

## Topics

### Inspecting the metadata

[`bounds`](/documentation/AVFoundation/AVMetadataObject/bounds)

The bounding rectangle associated with the metadata.

[`duration`](/documentation/AVFoundation/AVMetadataObject/duration)

The duration of the media associated with this metadata object.

[`time`](/documentation/AVFoundation/AVMetadataObject/time)

The media time value associated with the metadata object.

[`type`](/documentation/AVFoundation/AVMetadataObject/type)

The type of metadata that this object provides.

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

Constants that identify metadata object types.

[`isFixedFocus`](/documentation/AVFoundation/AVMetadataObject/isFixedFocus)

A BOOL indicating whether this metadata object represents a fixed focus.

[`cinematicVideoFocusMode`](/documentation/AVFoundation/AVMetadataObject/cinematicVideoFocusMode)

The current focus mode when an object is detected during a Cinematic Video recording.

[`groupID`](/documentation/AVFoundation/AVMetadataObject/groupID)

An identifier associated with a metadata object used to group it with other metadata objects belonging to a common parent.

[`objectID`](/documentation/AVFoundation/AVMetadataObject/objectID)

A unique identifier for each detected object type (face, body, hands, heads and salient objects) in a collection.



---

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)