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

# confirm(intent:completion:)

Confirms your app can end the workout.

## Declaration

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

```swift
optional func confirm(intent: INEndWorkoutIntent) async -> INEndWorkoutIntentResponse
```

## Parameters

- `intent`: The intent object that contains details about the user’s request. Use this object’s information to get the user-specified workout details.
- `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 end the user’s workout. For example, verify that a workout is currently in progress and whether you can end it.
