<!--
{
  "availability" : [
    "iOS: 11.0.0 - 13.0.0",
    "iPadOS: 11.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 4.0.0 - 6.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INAddTasksIntent/init(targetTaskList:taskTitles:spatialEventTrigger:temporalEventTrigger:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INAddTasksIntent(im)initWithTargetTaskList:taskTitles:spatialEventTrigger:temporalEventTrigger:"
  },
  "title" : "init(targetTaskList:taskTitles:spatialEventTrigger:temporalEventTrigger:)"
}
-->

# init(targetTaskList:taskTitles:spatialEventTrigger:temporalEventTrigger:)

Initializes the intent object with the specified task details.

```
convenience init(targetTaskList: INTaskList?, taskTitles: [INSpeakableString]?, spatialEventTrigger: INSpatialEventTrigger?, temporalEventTrigger: INTemporalEventTrigger?)
```

## Parameters

`targetTaskList`

The task list in which to create the new tasks.

`taskTitles`

An array of strings, each of which represents a task to add to the task list.

`spatialEventTrigger`

An [`INSpatialEventTrigger`](/documentation/Intents/INSpatialEventTrigger) object that contains details of when reminders should be sent for the tasks. The trigger applies to all tasks being added.

`temporalEventTrigger`

An [`INTemporalEventTrigger`](/documentation/Intents/INTemporalEventTrigger) object that contains details of when reminders should be sent for the tasks. The trigger applies to all tasks being added.

## 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 add tasks to a task list. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)