Function

CMTimeRangeMakeFromDictionary(_:)

Reconstitutes a CMTimeRange struct from a CFDictionary previously created by CMTimeRangeCopyAsDictionary(_:allocator:).

Declaration

func CMTimeRangeMakeFromDictionary(_ dictionaryRepresentation: CFDictionary) -> CMTimeRange

Parameters

dict

CFDictionary from which to create a CMTimeRange.

Return Value

The reconstituted CMTimeRange.

Discussion

This is useful when getting CMTimeRanges from Core Foundation container types. If the CFDictionary does not have the requisite keyed values, an invalid time range is returned. For keys, see CFDictionary Keys.

See Also

Creating Time Ranges

func CMTimeRangeMake(start: CMTime, duration: CMTime) -> CMTimeRange

Creates a valid CMTimeRange with the given start time and duration.

func CMTimeRangeFromTimeToTime(start: CMTime, end: CMTime) -> CMTimeRange

Creates a valid CMTimeRange from the given start and end time.