An event that is evaluated based on the value of a characteristic.
On This Page
class HMCharacteristicEvent<TriggerValueType> : HMEvent where TriggerValueType : NSCopying
init(characteristic: HMCharacteristic, triggerValue: TriggerValueType?)
Creates a new characteristic event which triggers when the specified characteristic reaches the specified value.
var characteristic: HMCharacteristic
The characteristic associated with the event.
var triggerValue: TriggerValueType?
The value of the characteristic that triggers the event.
func updateTriggerValue(TriggerValueType?, completionHandler: (Error?) -> Void)
Changes the trigger value associated with this event.
A mutable event that is evaluated based on the value of a characteristic.