---
title: "init(tasks:nextTriggerTime:all:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/insnoozetasksintent/init(tasks:nexttriggertime:all:)"
---

# init(tasks:nextTriggerTime:all:)

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

## Declaration

```swift
@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

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

## Discussion

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.
