Instance Method

initWithCharacteristic:thresholdRange:

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

Declaration

- (instancetype)initWithCharacteristic:(HMCharacteristic *)characteristic thresholdRange:(HMNumberRange *)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.