---
title: "init(characteristic:thresholdRange:)"
framework: homekit
role: symbol
role_heading: Initializer
path: "homekit/hmcharacteristicthresholdrangeevent/init(characteristic:thresholdrange:)"
---

# init(characteristic:thresholdRange:)

Creates a characteristic threshold range event for the specified characteristic and number range.

## Declaration

```swift
init(characteristic: HMCharacteristic, thresholdRange: HMNumberRange)
```

## Parameters

- `characteristic`: The characteristic that the event is observing.
- `thresholdRange`: The range for the characteristic value that triggers the event.

## Return Value

Return Value An initialized characteristic threshold range event.

## Discussion

Discussion Use a characteristic that supports notification; otherwise this initializer throws an exception.
