Triggers the delivery of a local notification after the specified amount of time.
- iOS 10.0+
- tvOS 10.0+
- watchOS 3.0+
UNTime object for local notifications that you want delivered at a time relative to the current time. You specify the number of seconds that must elapse before the notification fires. You can also set up the trigger to repeat at the specified interval.
Always use the
init(time method to create instances of this class. Listing 1 shows an example that creates a trigger to fire once after thirty minutes have elapsed.