---
title: "resolveSearchTerms(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insearchforphotosintenthandling/resolvesearchterms(for:with:)"
---

# resolveSearchTerms(for:with:)

Resolves any search terms provided by the user.

## Declaration

```swift
optional func resolveSearchTerms(for intent: INSearchForPhotosIntent, with completion: @escaping @Sendable ([INStringResolutionResult]) -> Void)
```

```swift
optional func resolveSearchTerms(for intent: INSearchForPhotosIntent) async -> [INStringResolutionResult]
```

## 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 any search terms provided by the user.

## See Also

### Resolving the Intent Parameters

- [resolveDateCreated(for:with:)](intents/insearchforphotosintenthandling/resolvedatecreated(for:with:).md)
- [resolveLocationCreated(for:with:)](intents/insearchforphotosintenthandling/resolvelocationcreated(for:with:).md)
- [resolvePeopleInPhoto(for:with:)](intents/insearchforphotosintenthandling/resolvepeopleinphoto(for:with:).md)
- [resolveAlbumName(for:with:)](intents/insearchforphotosintenthandling/resolvealbumname(for:with:).md)
