Class

HMCharacteristicThresholdRangeEvent

An event that triggers when the value of a characteristic is within a specified range.

Declaration

class HMCharacteristicThresholdRangeEvent : HMEvent

Topics

Creating a Characteristic Threshold Range Event

init(characteristic: HMCharacteristic, thresholdRange: HMNumberRange)

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

Inspecting a Characteristic Threshold Event

var characteristic: HMCharacteristic

The characteristic associated with the event.

var thresholdRange: HMNumberRange

The range of the characteristic value that triggers the event.

See Also

Characteristic Ranges

class HMNumberRange

A set of numbers used to specify conditions for characteristic range threshold events.

class HMMutableCharacteristicThresholdRangeEvent

A mutable event that triggers when the value of a characteristic is within a specified range.