Creates a new event trigger with the specified name, events, end events, recurrences, and predicate.
- iOS 11.0+
The name of the event trigger.
An array of events that can activate the evaluation of the event trigger. The trigger is evaluated if any one of the events is true.
An array of events that can trigger the end of the scene that this event trigger represents.
The predicate to test and activate after evaluating the event trigger. Once activated, the event's scenes execute. If a value isn't specified the event trigger executes the scene if any of the events activate.
An initialized event trigger.