iOS Developer Library

Developer

AV Foundation Framework Reference AVMutableMetadataItem Class Reference

Options
Deployment Target:

On This Page
Language:

AVMutableMetadataItem

AVMutableMetadataItem is a mutable subclass of AVMetadataItem that lets you build collections of metadata to be written to asset files using AVAssetExportSession.

You can initialize a mutable metadata item from an existing AVMetadataItem object or with a one or more of the basic properties of a metadata item: a key, a key space, a locale, and a value.

  • Returns a new mutable metadata item.

    Declaration

    Objective-C

    + (AVMutableMetadataItem *)metadataItem

    Return Value

    A new mutable metadata item.

    Availability

    Available in iOS 4.0 and later.

  • key key Property

    Indicates the metadata item’s key.

    Declaration

    Swift

    @NSCopying var key: protocol<NSCopying, NSObjectProtocol>?

    Objective-C

    @property(nonatomic, readwrite, copy) id<NSObject, NSCopying> key

    Availability

    Available in iOS 4.0 and later.

  • Indicates the key space of the metadata item’s key.

    Declaration

    Swift

    var keySpace: String?

    Objective-C

    @property(nonatomic, readwrite, copy) NSString *keySpace

    Discussion

    This is typically the default key space for the metadata container in which the metadata item is stored.

    Availability

    Available in iOS 4.0 and later.

  • Indicates the metadata item’s value.

    Declaration

    Swift

    @NSCopying var value: protocol<NSCopying, NSObjectProtocol>?

    Objective-C

    @property(nonatomic, readwrite, copy) id<NSObject, NSCopying> value

    Availability

    Available in iOS 4.0 and later.

  • Indicates the metadata item’s locale.

    Declaration

    Swift

    @NSCopying var locale: NSLocale?

    Objective-C

    @property(nonatomic, readwrite, copy) NSLocale *locale

    Discussion

    The locale may be nil if no locale information is available for the item.

    Availability

    Available in iOS 4.0 and later.

  • time time Property

    Indicates the metadata item’s timestamp.

    Declaration

    Swift

    var time: CMTime

    Objective-C

    @property(nonatomic, readwrite) CMTime time

    Availability

    Available in iOS 4.0 and later.

    See Also

    duration

  • Indicates the metadata item’s duration.

    Declaration

    Swift

    var duration: CMTime

    Objective-C

    @property(nonatomic, readwrite) CMTime duration

    Availability

    Available in iOS 4.2 and later.

    See Also

    time

  • Provides a dictionary of the metadata item’s additional attributes.

    Declaration

    Swift

    var extraAttributes: [String : AnyObject]?

    Objective-C

    @property(nonatomic, readwrite, copy) NSDictionary <NSString *,id> *extraAttributes

    Availability

    Available in iOS 4.0 and later.

  • Indicates the data type of the metadata item's value.

    Declaration

    Swift

    var dataType: String?

    Objective-C

    @property(nonatomic, readwrite, copy) NSString *dataType

    Availability

    Available in iOS 8.0 and later.

  • The IETF BCP 47 (RFC 4646) language identifier of the metadata item.

    Declaration

    Swift

    var extendedLanguageTag: String?

    Objective-C

    @property(nonatomic, readwrite, copy) NSString *extendedLanguageTag

    Discussion

    The value may be nil if no language tag information is available.

    Availability

    Available in iOS 8.0 and later.

  • Indicates the identifier of the metadata item.

    Declaration

    Swift

    var identifier: String?

    Objective-C

    @property(nonatomic, readwrite, copy) NSString *identifier

    Availability

    Available in iOS 8.0 and later.

  • Indicates the start date of the timed metadata.

    Declaration

    Swift

    @NSCopying var startDate: NSDate?

    Objective-C

    @property(nonatomic, readwrite, copy) NSDate *startDate

    Discussion

    The value is nil if no date is indicated.

    Availability

    Available in iOS 9.0 and later.