Contents

init(characteristic:thresholdRange:)

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

Declaration

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

An initialized characteristic threshold range event.

Discussion

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