Initializes the intent object with information about the tasks to snooze and when to snooze them.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
- Xcode 11.0+
An array of tasks to snooze.
The next time to trigger a snooze.
A Boolean value that indicates whether to snooze all of the tasks.
An initialized intent object or
nil if the object could not be created.
Typically, you don’t create instances of this class yourself. Instead, SiriKit creates instances when the user asks to set the attributes of a task. However, you can use this method during testing to create intent objects validate your intent handling code paths.