Class

AVMetadataObject

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

Declaration

@interface AVMetadataObject : NSObject

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 object to retrieve them from the captured data.

Topics

Getting the Type of Metadata

type

The type of the metadata.

AVMetadataObjectType

Values identifying the type of metadata object.

Getting the Media-Related Attributes

time

The media time value associated with the metadata object.

duration

The duration of the media associated with this metadata object.

bounds

The bounding rectangle associated with the metadata.

Relationships

Inherits From

See Also

Metadata Capture

AVMetadataBodyObject

An abstract class that defines the interface for a metadata body object.

AVMetadataCatBodyObject

An object representing a single detected cat body in a picture.

AVMetadataDogBodyObject

An object representing a single detected dog body in a picture.

AVMetadataHumanBodyObject

An object representing a single detected human body in a picture.

AVMetadataSalientObject

An object representing a single salient area in a picture.

AVCaptureMetadataInput

A capture input for providing timed metadata to a capture session.

AVCaptureMetadataOutput

A capture output for processing timed metadata produced by a capture session.

AVMetadataFaceObject

Face information detected by a metadata capture output.

AVMetadataMachineReadableCodeObject

Barcode information detected by a metadata capture output.