---
title: HMDurationEvent
framework: homekit
role: symbol
role_heading: Class
path: homekit/hmdurationevent
---

# HMDurationEvent

An event that ends after the specified time duration.

## Declaration

```swift
class HMDurationEvent
```

## Overview

Overview Use a duration event to specify that a different event should end after a period of time.

## Topics

### Creating a duration event

- [init(duration:)](homekit/hmdurationevent/init(duration:).md)

### Inspecting a duration event

- [duration](homekit/hmdurationevent/duration.md)

## Relationships

### Inherits From

- [HMTimeEvent](homekit/hmtimeevent.md)

### Inherited By

- [HMMutableDurationEvent](homekit/hmmutabledurationevent.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSMutableCopying](foundation/nsmutablecopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Durations

- [HMMutableDurationEvent](homekit/hmmutabledurationevent.md)
