<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 9.0.0 -",
    "tvOS: 10.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMLocationEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMLocationEvent"
  },
  "title" : "HMLocationEvent"
}
-->

# HMLocationEvent

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

```
class HMLocationEvent
```

## Topics

### Creating a Location Event

[`-  initWithRegion:`](/documentation/HomeKit/HMLocationEvent/init(region:))

Creates a new location event with the specified region.

### Inspecting the Region

[`region`](/documentation/HomeKit/HMLocationEvent/region)

The region on which events are triggered.

### Configuring the Region

[`-  updateRegion:completionHandler:`](/documentation/HomeKit/HMLocationEvent/updateRegion(_:completionHandler:))

Changes the region associated with this event.

## Relationships

### Inherits From

[`HMEvent`](/documentation/HomeKit/HMEvent)

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSMutableCopying`](/documentation/Foundation/NSMutableCopying)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

### Inherited By

[`HMMutableLocationEvent`](/documentation/HomeKit/HMMutableLocationEvent)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)