Generic Class

HMCharacteristicEvent

An event that is evaluated based on the value of a characteristic.

Declaration

class HMCharacteristicEvent<TriggerValueType> : HMEvent where TriggerValueType : NSCopying

Topics

Creating a Characteristic Event

init(characteristic: HMCharacteristic, triggerValue: TriggerValueType?)

Creates a new characteristic event which triggers when the specified characteristic reaches the specified value.

Inspecting the Event

var characteristic: HMCharacteristic

The characteristic associated with the event.

var triggerValue: TriggerValueType?

The value of the characteristic that triggers the event.

Configuring the Event

func updateTriggerValue(TriggerValueType?, completionHandler: (Error?) -> Void)

Changes the trigger value associated with this event.

Deprecated

See Also

Characteristics

class HMMutableCharacteristicEvent

A mutable event that is evaluated based on the value of a characteristic.