Function

CMTimeRangeContainsTimeRange(_:otherRange:)

Returns a Boolean that indicates whether a given time range is contained within another time range.

Declaration

func CMTimeRangeContainsTimeRange(_ range: CMTimeRange, otherRange: CMTimeRange) -> Bool

Parameters

range1

The CMTimeRange being interrogated.

range2

CMTimeRange to be tested for inclusion.

Return Value

Returns true if the second time range is contained within the first time range, false if it is not.

Discussion

This function returns a Boolean value that indicates whether the time range specified by the range1 parameter contains the range specified by the range2 parameter.

See Also

Comparing Time Ranges

func CMTimeRangeEqual(CMTimeRange, CMTimeRange) -> Bool

Returns a Boolean value that indicates whether two CMTimeRanges are identical.

func CMTimeRangeContainsTime(CMTimeRange, time: CMTime) -> Bool

Indicates whether a time is contained within a time range.