---
title: HMPresenceEvent
framework: homekit
role: symbol
role_heading: Class
path: homekit/hmpresenceevent
---

# HMPresenceEvent

An event that triggers based on the presence of users in the home.

## Declaration

```swift
class HMPresenceEvent
```

## Topics

### Creating a presence event

- [init(presenceEventType:presenceUserType:)](homekit/hmpresenceevent/init(presenceeventtype:presenceusertype:).md)

### Inspecting a presence event

- [presenceEventType](homekit/hmpresenceevent/presenceeventtype.md)
- [presenceUserType](homekit/hmpresenceevent/presenceusertype.md)

## Relationships

### Inherits From

- [HMEvent](homekit/hmevent.md)

### Inherited By

- [HMMutablePresenceEvent](homekit/hmmutablepresenceevent.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

### User presence

- [HMMutablePresenceEvent](homekit/hmmutablepresenceevent.md)
- [HMPresenceEventType](homekit/hmpresenceeventtype.md)
- [HMPresenceEventUserType](homekit/hmpresenceeventusertype.md)
