iOS Developer Library

Developer

AVFoundation 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. More...

Inheritance


Import Statement


import AVFoundation @import AVFoundation;

Availability


Available in iOS 4.0 and later.
  • Returns a new mutable metadata item.

    Declaration

    Objective-C

    + (AVMutableMetadataItem *)metadataItem

    Return Value

    A new mutable metadata item.

    Import Statement

    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

    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

    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

    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

    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

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

    See Also

    duration

  • duration duration Property

    Indicates the metadata item’s duration.

    Availability

    Available in iOS 4.2 and later.

    See Also

    time

    Declaration

    Swift

    var duration: CMTime

    Objective-C

    @property(readwrite) CMTime duration

    Import Statement

    import AVFoundation

  • 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

    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

    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

    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

    import AVFoundation

    Availability

    Available in iOS 8.0 and later.