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 should not subclass AVMetadataObject directly. Instead, you use one of the defined subclasses provided by the AVFoundation framework. Similarly, you do not 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.

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

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software