An event that triggers when the value of a characteristic is within a specified range.
SDKs
- iOS 11.0+
- tvOS 11.0+
- watchOS 4.0+
Framework
- Home
Kit
Declaration
class HMCharacteristicThresholdRangeEvent : HMEvent
An event that triggers when the value of a characteristic is within a specified range.
SDKs
Framework
class HMCharacteristicThresholdRangeEvent : HMEvent
init(characteristic: HMCharacteristic, threshold Range: HMNumber Range)
Creates a characteristic threshold range event for the specified characteristic and number range.
var characteristic: HMCharacteristic
The characteristic associated with the event.
var threshold Range: HMNumber Range
The range of the characteristic value that triggers the event.
class HMNumber Range
A set of numbers used to specify conditions for characteristic range threshold events.
class HMMutable Characteristic Threshold Range Event
A mutable event that triggers when the value of a characteristic is within a specified range.