<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSnoozeTasksIntent/init(tasks:nextTriggerTime:all:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "s:So19INSnoozeTasksIntentC7IntentsE5tasks15nextTriggerTime3allABSaySo6INTaskCGSg_So21INDateComponentsRangeCSgSbSgtcfc"
  },
  "title" : "init(tasks:nextTriggerTime:all:)"
}
-->

# init(tasks:nextTriggerTime:all:)

Initializes the intent object with information about the tasks to snooze and when to snooze them.

```
@nonobjc convenience init(tasks: [INTask]? = nil, nextTriggerTime: INDateComponentsRange? = nil, all: Bool? = nil)
```

## Parameters

`tasks`

An array of tasks to snooze.

`nextTriggerTime`

The next time to trigger a snooze.

`all`

A Boolean value that indicates whether to snooze all of the tasks.

## Return Value

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

## Discussion

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.

---

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)