---
title: "resolveWorkoutName(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/inresumeworkoutintenthandling/resolveworkoutname(for:with:)"
---

# resolveWorkoutName(for:with:)

Resolves the workout name that the user wants to resume.

## Declaration

```swift
optional func resolveWorkoutName(for intent: INResumeWorkoutIntent, with completion: @escaping @Sendable (INSpeakableStringResolutionResult) -> Void)
```

```swift
optional func resolveWorkoutName(for intent: INResumeWorkoutIntent) async -> INSpeakableStringResolutionResult
```

## Parameters

- `intent`: The intent object that contains details about the user’s request. Use this object to get the information, if any, provided by the user.
- `completion`: The block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:

## Discussion

Discussion This method validates the workout name supplied by the user. If you don’t implement this method, SiriKit assumes that you’re able to resume the requested workout with the specified name.
