A trigger condition based on a date or time.


class INTemporalEventTrigger : NSObject


When configuring tasks, you can add an INTemporalEventTrigger object to display a reminder at a specific time. Because you specify the time values using an INDateComponentsRange object, the trigger condition can occur at a single time or within a range of time. You can also specify a repeating trigger time by specifying a day without a month or year or by specifying a time value without a specific day.


Initializing an Event Trigger

init(dateComponentsRange: INDateComponentsRange)

Initializes the event trigger with the specified date information.

Getting the Trigger Condition

var dateComponentsRange: INDateComponentsRange

The triggering time range for an event.


Inherits From

See Also

Event Triggers

class INSpatialEventTrigger

A trigger condition based on the user’s arrival or departure from a given location.

class INTemporalEventTriggerTypeOptionsResolutionResult

A resolution result that adds a temporal event trigger.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software