Contents

nextInterval

The schedule’s next interval or the current interval if one is ongoing.

Declaration

var nextInterval: DateInterval? { get }

Discussion

nil if intervalStart and intervalEnd don’t match any future dates. The start and end dates indicate the earliest point when the intervalDidStart(for:) and intervalDidEnd(for:) methods of your app extension’s principal class invokes. The system actually invokes these methods when someone uses the device during the interval. The system additionally calls intervalDidEnd(for:) when you stop monitoring an activity with an ongoing interval. The system doesn’t call these methods unless the device is used during the interval.

See Also

Creating a Schedule