---
title: duration
framework: exposurenotification
role: symbol
role_heading: Instance Property
path: exposurenotification/enexposureinfo/duration
---

# duration

The length of time that the contact was in proximity to the user.

## Declaration

```swift
var duration: TimeInterval { get }
```

## Discussion

Discussion When reporting the duration of an exposure, the values are stored as seconds rounded up to the next minute. A duration value caps at 30 minutes (1800 seconds). note: In iOS 13.5, duration values are rounded up to the next 5-minute interval.

## See Also

### Exposure Criteria

- [attenuationDurations](exposurenotification/enexposureinfo/attenuationdurations.md)
- [attenuationValue](exposurenotification/enexposureinfo/attenuationvalue.md)
- [date](exposurenotification/enexposureinfo/date.md)
- [totalRiskScore](exposurenotification/enexposureinfo/totalriskscore.md)
- [totalRiskScoreFullRange](exposurenotification/enexposureinfo/totalriskscorefullrange.md)
- [transmissionRiskLevel](exposurenotification/enexposureinfo/transmissionrisklevel.md)
- [ENAttenuation](exposurenotification/enattenuation.md)
- [metadata](exposurenotification/enexposureinfo/metadata.md)
- [daysSinceOnsetOfSymptoms](exposurenotification/enexposureinfo/dayssinceonsetofsymptoms.md)
- [diagnosisReportType](exposurenotification/enexposureinfo/diagnosisreporttype.md)
- [ENDaysSinceOnsetOfSymptomsUnknown](exposurenotification/endayssinceonsetofsymptomsunknown.md)
