Contents

resolvePlaybackQueueLocation(for:with:)

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

Declaration

optional func resolvePlaybackQueueLocation(for intent: INPlayMediaIntent, with completion: @escaping  @Sendable (INPlaybackQueueLocationResolutionResult) -> Void)
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:

    resolutionResult

    The object that contains the details of your proposed resolution. For a successful resolution, create a resolution object that contains the Inplaybackqueuelocation value.

Discussion

Implement this method to resolve the location in the playback queue where your app plays the media.

See Also

Resolving the Intent Parameters