---
title: "resolvePlaybackQueueLocation(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/inplaymediaintenthandling/resolveplaybackqueuelocation(for:with:)"
---

# resolvePlaybackQueueLocation(for:with:)

Resolves the location in the playback queue where your app plays the media.

## Declaration

```swift
optional func resolvePlaybackQueueLocation(for intent: INPlayMediaIntent, with completion: @escaping @Sendable (INPlaybackQueueLocationResolutionResult) -> Void)
```

```swift
optional func resolvePlaybackQueueLocation(for intent: INPlayMediaIntent) async -> INPlaybackQueueLocationResolutionResult
```

## 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 resolve the location in the playback queue where your app plays the media.

## See Also

### Resolving the Intent Parameters

- [resolveMediaItems(for:with:)](intents/inplaymediaintenthandling/resolvemediaitems(for:with:).md)
- [resolvePlayShuffled(for:with:)](intents/inplaymediaintenthandling/resolveplayshuffled(for:with:).md)
- [resolvePlaybackRepeatMode(for:with:)](intents/inplaymediaintenthandling/resolveplaybackrepeatmode(for:with:).md)
- [resolvePlaybackSpeed(for:with:)](intents/inplaymediaintenthandling/resolveplaybackspeed(for:with:).md)
- [resolveResumePlayback(for:with:)](intents/inplaymediaintenthandling/resolveresumeplayback(for:with:).md)
