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

# handle(intent:completion:)

Handles the canceling of the workout.

## Declaration

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

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

## Parameters

- `intent`: The intent object that contains details about the user’s request. The object’s information has already been resolved and confirmed by the user.
- `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 transfers control of starting the workout over to your app. When your response object contains the INCancelWorkoutIntentResponseCode.continueInApp code, SiriKit automatically launches your app and passes it the NSUserActivity object from your response object.
