---
title: "confirmationRequired(with:forReason:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/inaddtaskstargettasklistresolutionresult/confirmationrequired(with:forreason:)"
---

# confirmationRequired(with:forReason:)

Creates an object whose resolution requires the user to confirm the reason for creating a new task list before proceeding.

## Declaration

```swift
class func confirmationRequired(with taskListToConfirm: INTaskList?, forReason reason: INAddTasksTargetTaskListConfirmationReason) -> Self
```

## Parameters

- `taskListToConfirm`: The task list to confirm.
- `reason`: The reason for confirming the task list.

## Return Value

Return Value A new INAddTasksTargetTaskListResolutionResult object.

## Discussion

Discussion Use this method when you can’t resolve the parameter to a similar but not equal temporal event type than the one specified in the intent. Don’t use this method to resolve task list types your app doesn’t support.

## See Also

### Creating a Resolution Result

- [init(taskListResolutionResult:)](intents/inaddtaskstargettasklistresolutionresult/init(tasklistresolutionresult:).md)
- [INAddTasksTargetTaskListConfirmationReason](intents/inaddtaskstargettasklistconfirmationreason.md)
