---
title: "resolveMediaDestination(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/inaddmediaintenthandling/resolvemediadestination(for:with:)"
---

# resolveMediaDestination(for:with:)

Resolves the destination for the added media.

## Declaration

```swift
optional func resolveMediaDestination(for intent: INAddMediaIntent, with completion: @escaping @Sendable (INAddMediaMediaDestinationResolutionResult) -> Void)
```

```swift
optional func resolveMediaDestination(for intent: INAddMediaIntent) async -> INAddMediaMediaDestinationResolutionResult
```

## Parameters

- `intent`: The intent object that contains 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 while implementing this method. This block has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to verify the destination for the media your app adds.

## See Also

### Resolving Details of the Intent

- [resolveMediaItems(for:with:)](intents/inaddmediaintenthandling/resolvemediaitems(for:with:).md)
