Initializes the intent object with the specified task list details.
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
The title of the task list.
An array of strings containing the titles of any tasks to place in the task list.
The name of the group in which to store the task list. Group names correspond to folders or other means of organizing task lists within your app.
An initialized intent object or
nil if the object could not be created.
Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when the user asks to create a task list. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.