---
title: HMLocationEvent
framework: homekit
role: symbol
role_heading: Class
path: homekit/hmlocationevent
---

# HMLocationEvent

An event that is evaluated based on entry to or exit from a region.

## Declaration

```swift
class HMLocationEvent
```

## Topics

### Creating a Location Event

- [init(region:)](homekit/hmlocationevent/init(region:).md)

### Inspecting the Region

- [region](homekit/hmlocationevent/region.md)

### Configuring the Region

- [updateRegion(_:completionHandler:)](homekit/hmlocationevent/updateregion(_:completionhandler:).md)

## Relationships

### Inherits From

- [HMEvent](homekit/hmevent.md)

### Inherited By

- [HMMutableLocationEvent](homekit/hmmutablelocationevent.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

### Locations

- [HMMutableLocationEvent](homekit/hmmutablelocationevent.md)
