Instance Method

updateEndEvents:completionHandler:

Updates the set of end events associated with the event trigger.

Declaration

- (void)updateEndEvents:(NSArray<HMEvent *> *)endEvents completionHandler:(void (^)(NSError *error))completion;

Parameters

endEvents

An array of events that replaces the end 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

Restoring the Previous Scene After an Event

endEvents

The events associated with the end of scene represented by this trigger.