iOS Developer Library

Developer

AV Foundation Framework Reference AVTimedMetadataGroup Class Reference

Options
Deployment Target:

On This Page
Language:

AVTimedMetadataGroup

You use an AVTimedMetadataGroup object to represent a collection of metadata items.

AV Foundation also provides a mutable subclass, AVMutableTimedMetadataGroup.

  • Returns a metadata group initialized with given metadata items.

    Declaration

    Swift

    init(items items: [AVMetadataItem], timeRange timeRange: CMTimeRange)

    Objective-C

    - (instancetype)initWithItems:(NSArray<AVMetadataItem *> *)items timeRange:(CMTimeRange)timeRange

    Parameters

    items

    An array of AVMetadataItem objects.

    timeRange

    The time range of the metadata contained in items.

    Return Value

    A metadata group initialized with items.

    Discussion

    Availability

    Available in iOS 4.3 and later.

  • The time range of the metadata. (read-only)

    Declaration

    Swift

    var timeRange: CMTimeRange { get }

    Objective-C

    @property(nonatomic, readonly) CMTimeRange timeRange

    Discussion

    Availability

    Available in iOS 4.3 and later.

  • The metadata items in the group. (read-only)

    Declaration

    Swift

    var items: [AVMetadataItem] { get }

    Objective-C

    @property(nonatomic, readonly, copy) NSArray <AVMetadataItem *> *items

    Discussion

    The array contains instances of AVMetadataItem.

    Availability

    Available in iOS 4.3 and later.