---
title: HMPresenceEventType
framework: homekit
role: symbol
role_heading: Enumeration
path: homekit/hmpresenceeventtype
---

# HMPresenceEventType

The user presence type that triggers a presence event.

## Declaration

```swift
enum HMPresenceEventType
```

## Topics

### Specifying presence type

- [HMPresenceEventType.everyEntry](homekit/hmpresenceeventtype/everyentry.md)
- [HMPresenceEventType.everyExit](homekit/hmpresenceeventtype/everyexit.md)
- [HMPresenceEventType.firstEntry](homekit/hmpresenceeventtype/firstentry.md)
- [HMPresenceEventType.lastExit](homekit/hmpresenceeventtype/lastexit.md)

### Using presence as a predicate

- [atHome](homekit/hmpresenceeventtype/athome.md)
- [notAtHome](homekit/hmpresenceeventtype/notathome.md)

### Initializers

- [init(rawValue:)](homekit/hmpresenceeventtype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### User presence

- [HMPresenceEvent](homekit/hmpresenceevent.md)
- [HMMutablePresenceEvent](homekit/hmmutablepresenceevent.md)
- [HMPresenceEventUserType](homekit/hmpresenceeventusertype.md)
