iOS Developer Library

Developer

AVFoundation Framework Reference AVTimedMetadataGroup Class Reference

Options
Deployment Target:

On This Page
Language:

AVTimedMetadataGroup

Inherits From


Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 4.3 and later

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: [AnyObject]!, timeRange timeRange: CMTimeRange)

    Objective-C

    - (instancetype)initWithItems:(NSArray *)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

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later

  • timeRange timeRange Property

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

    Declaration

    Swift

    var timeRange: CMTimeRange { get }

    Objective-C

    @property(readonly) CMTimeRange timeRange

    Discussion

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later

  • items items Property

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

    Declaration

    Swift

    var items: [AnyObject]! { get }

    Objective-C

    @property(readonly, copy) NSArray *items

    Discussion

    The array contains instances of AVMetadataItem.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later