Initializer

init(title:taskTitles:groupName:)

Initializes the intent object with the specified task list details.

Declaration

init(title: INSpeakableString?, taskTitles: [INSpeakableString]?, groupName: INSpeakableString?)

Parameters

title

The title of the task list.

taskTitles

An array of strings containing the titles of any tasks to place in the task list.

groupName

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.

Return Value

An initialized intent object or nil if the object could not be created.

Discussion

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.