Instance Property

endEvents

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

Declaration

@property(readonly, copy, nonatomic) NSArray<HMEvent *> *endEvents;

Discussion

HomeKit restores the previously active scene when the events in this array trigger. For example, you can use end events to execute a scene for 10 minutes by specifying an HMDurationEvent in the list of endEvents. This restores the previous scene when the duration event triggers.

You can also use HMCharacteristicEvent and HMCharacteristicThresholdRangeEvent objects as end events.

See Also

Restoring the Previous Scene After an Event

- updateEndEvents:completionHandler:

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