iOS Developer Library

Developer

AVFoundation Framework Reference AVMutableMetadataItem Class Reference

Options
Deployment Target:

On This Page
Language:

AVMutableMetadataItem

Inheritance


Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 4.0 and later.

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.

    Import Statement

    Objective-C

    @import AVFoundation;

    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(readwrite, copy) id<NSObject, NSCopying> key

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

  • keySpace keySpace Property

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

    Declaration

    Swift

    var keySpace: String!

    Objective-C

    @property(readwrite, copy) NSString *keySpace

    Discussion

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

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

  • value value Property

    Indicates the metadata item’s value.

    Declaration

    Swift

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

    Objective-C

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

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

  • locale locale Property

    Indicates the metadata item’s locale.

    Declaration

    Swift

    @NSCopying var locale: NSLocale!

    Objective-C

    @property(readwrite, copy) NSLocale *locale

    Discussion

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

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    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(readwrite) CMTime time

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

    See Also

    duration

  • duration duration Property

    Indicates the metadata item’s duration.

    See Also

    time

    Declaration

    Swift

    var duration: CMTime

    Objective-C

    @property(readwrite) CMTime duration

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.2 and later.

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

    Declaration

    Swift

    var extraAttributes: [NSObject : AnyObject]!

    Objective-C

    @property(readwrite, copy) NSDictionary *extraAttributes

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

  • dataType dataType Property

    Indicates the data type of the metadata item's value. (read-only)

    Declaration

    Swift

    var dataType: String!

    Objective-C

    @property(readwrite, copy) NSString *dataType

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 8.0 and later.

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

    Declaration

    Swift

    var extendedLanguageTag: String!

    Objective-C

    @property(readwrite, copy) NSString *extendedLanguageTag

    Discussion

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

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 8.0 and later.

  • Indicates the identifier of the metadata item. (read-only)

    Declaration

    Swift

    var identifier: String!

    Objective-C

    @property(readwrite, copy) NSString *identifier

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 8.0 and later.