Instance Method

updateTriggerValue(_:completionHandler:)

Changes the trigger value associated with this event.

Declaration

func updateTriggerValue(_ triggerValue: TriggerValueType?, completionHandler completion: @escaping (Error?) -> Void)

Parameters

triggerValue

The value of the characteristic that triggers the event.

completionHandler

The block executed once the trigger value update request has been processed.

error

nil on success; otherwise, error object indicating the reason for failure.

Discussion

Set the trigger value to nil to trigger the event whenever the value of the characteristic changes.