---
title: "detections(in:)"
framework: cinematic
role: symbol
role_heading: Instance Method
path: "cinematic/cndetectiontrack-2bxtd/detections(in:)"
---

# detections(in:)

Returns the array of detections in the detection track within the given time range.

## Declaration

```swift
func detections(in timeRange: CMTimeRange) -> [CNDetection]
```

## Parameters

- `timeRange`: The time range of interest.

## Return Value

Return Value The array of detections in the detection track within the given time range. The return value is only appropriate for discrete detection tracks.
