Contents

updateEvents(_:completionHandler:)

Updates the set of trigger events.

Declaration

func updateEvents(_ events: [HMEvent], completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func updateEvents(_ events: [HMEvent]) async throws

Parameters

  • events:

    An array of events that replaces the events on the trigger.

  • completion:

    A block that executes after processing the request.

    The block takes the following parameter:

    error

    If the request was successful, the value of error is nil; otherwise, the value provides more information about the request status.

See Also

Setting trigger events