BMPDaterangeMetadata

Objective-C


@interface BMPDaterangeMetadata : BMPMetadata

Swift

class DaterangeMetadata : Metadata

Represents in-playlist timed metadata.

Note

Only supported starting with iOS 9.3
  • Indicates the start date of the metadata

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSDate *_Nonnull startDate;

    Swift

    var startDate: Date { get }
  • Indicates the end date of the metadata

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSDate *endDate;

    Swift

    var endDate: Date? { get }
  • Initializes an instance of BMPDaterangeMetadata with a collection of metadata entries.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEntries:
                                (nonnull NSArray<id<BMPMetadataEntry>> *)entries
                                  startDate:(nonnull NSDate *)startDate
                                    endDate:(nullable NSDate *)endDate;

    Swift

    init(entries: [MetadataEntry], start startDate: Date, end endDate: Date?)

    Parameters

    entries

    An NSArray of BMPMetadataEntries.

    startDate

    The start date of the date range.

    endDate

    The end date of the date range. If the receiver is intended to represent information about an instantaneous event, the value of endDate should be equal to the value of startDate. A value of nil for endDate indicates that the endDate is indefinite.

    Return Value

    An instance of BMPDaterangeMetadata.