<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INPlayMediaIntentHandling/confirm(intent:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INPlayMediaIntentHandling(im)confirmPlayMedia:completion:"
  },
  "title" : "confirm(intent:completion:)"
}
-->

# confirm(intent:completion:)

Confirms the details of the media playback request.

```
optional func confirm(intent: INPlayMediaIntent, completion: @escaping @Sendable (INPlayMediaIntentResponse) -> Void)
```

```
optional func confirm(intent: INPlayMediaIntent) async -> INPlayMediaIntentResponse
```

## Parameters

`intent`

The [`INPlayMediaIntent`](/documentation/Intents/INPlayMediaIntent) object that contains details about the user’s request.

`completion`

The handler block to execute with your response. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:

- `response`: The [`INPlayMediaIntentResponse`](/documentation/Intents/INPlayMediaIntentResponse) object that contains the response code which determines whether your app can play back the media content. This parameter must not be `nil`.

## Discussion

Implement this method to determine whether your app can play the requested media. If it can, respond with the [`INPlayMediaIntentResponseCode.ready`](/documentation/Intents/INPlayMediaIntentResponseCode/ready) response code. Include the [`nowPlayingInfo`](/documentation/Intents/INPlayMediaIntentResponse/nowPlayingInfo) dictionary in the response, so the system can display information such as title, artist, and artwork, about the media.

When your Intents app extension doesn’t provide this method, the system assumes your app can play the media.

If your app can’t play the media, respond with the appropriate failure code.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)