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

# resolveAlbumName(for:with:)

Resolves the name of the photo album containing the photos.

## Declaration

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

```swift
optional func resolveAlbumName(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 block to execute with the resolution. You must execute this block at some point during your implementation of this method. This block has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve the name of the photo album.

## 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)
- [resolveSearchTerms(for:with:)](intents/insearchforphotosintenthandling/resolvesearchterms(for:with:).md)
