Creates a characteristic threshold range event for the specified characteristic and number range.
SDKs
- iOS 11.0+
- tvOS 11.0+
- watchOS 4.0+
Framework
- Home
Kit
Declaration
- (instancetype)initWithCharacteristic:(HMCharacteristic *)characteristic thresholdRange:(HMNumber Range *)thresholdRange;
Parameters
characteristic
The characteristic that the event is observing.
thresholdRange
The range for the characteristic value that triggers the event.
Return Value
An initialized characteristic threshold range event.
Discussion
Use a characteristic that supports notification; otherwise this initializer throws an exception.