---
title: "resolveTaskTitles(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/inaddtasksintenthandling/resolvetasktitles(for:with:)"
---

# resolveTaskTitles(for:with:)

Resolves the titles for the tasks.

## Declaration

```swift
optional func resolveTaskTitles(for intent: INAddTasksIntent, with completion: @escaping @Sendable ([INSpeakableStringResolutionResult]) -> Void)
```

```swift
optional func resolveTaskTitles(for intent: INAddTasksIntent) async -> [INSpeakableStringResolutionResult]
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve the titles for the taks. Use the intent object to obtain the titles suggested by the user. If the user doesn’t supply any task titles, return a response that indicates you need a value for the task titles. Alternatively, you could return a successful resolution containing a default task title.

## See Also

### Resolving the Intent Parameters

- [resolveTargetTaskList(for:with:)](intents/inaddtasksintenthandling/resolvetargettasklist(for:with:)-2er0u.md)
- [resolveSpatialEventTrigger(for:with:)](intents/inaddtasksintenthandling/resolvespatialeventtrigger(for:with:).md)
- [resolveTemporalEventTrigger(for:with:)](intents/inaddtasksintenthandling/resolvetemporaleventtrigger(for:with:)-7yrz3.md)
- [resolvePriority(for:with:)](intents/inaddtasksintenthandling/resolvepriority(for:with:).md)
- [resolveTargetTaskList(for:with:)](intents/inaddtasksintenthandling/resolvetargettasklist(for:with:)-2uevx.md)
- [resolveTemporalEventTrigger(for:with:)](intents/inaddtasksintenthandling/resolvetemporaleventtrigger(for:with:)-2h9ff.md)
