Contents

updateTriggerValue(_:completionHandler:)

Changes the trigger value associated with this event.

Declaration

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

Parameters

  • triggerValue:

    The value of the characteristic that triggers the event.

  • completion:

    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.