---
title: "confirm(intent:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insnoozetasksintenthandling/confirm(intent:completion:)"
---

# confirm(intent:completion:)

Confirms whether you can snooze the task.

## Declaration

```swift
optional func confirm(intent: INSnoozeTasksIntent, completion: @escaping @Sendable (INSnoozeTasksIntentResponse) -> Void)
```

```swift
optional func confirm(intent: INSnoozeTasksIntent) async -> INSnoozeTasksIntentResponse
```

## Parameters

- `intent`: The intent object that contains details about the user’s request. This object’s information has already been resolved by your handler object.
- `completion`: The handler block to execute with your response. You must execute this handler while implementing this method. The handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to validate that you can snooze the tasks, but don’t do so yet. If snoozing tasks involves contacting a remote server, first validate that your server is available and ready to handle the requests, then in your implementation, execute the provided completion block with a response object that indicates your app’s readiness to snooze the tasks.
