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

# confirm(intent:completion:)

Confirms that your app is able to cancel the workout.

## Declaration

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

```swift
optional func confirm(intent: INCancelWorkoutIntent) async -> INCancelWorkoutIntentResponse
```

## Parameters

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

## Discussion

Discussion This method validates that your app is currently able to cancel the user’s workout. For example, verify that a workout is currently in progress and you can cancel it.
