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

# confirm(intent:completion:)

Confirms whether you can change the audio source.

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

## Parameters

`intent`

The intent object containing details about the user’s request. Your handler object has already resolved the information in this object.

`completion`

The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

- response: The [`INSetAudioSourceInCarIntentResponse`](/documentation/Intents/INSetAudioSourceInCarIntentResponse) object containing the status of whether your app is able to change the audio source. This parameter must not be `nil`.

## Discussion

Implement this method to validate that you can change the audio source using the given parameters. For example, you might use this method to verify that you have an active connection to the vehicle. At some point in your implementation, execute the provided completion block with a response object indicating your app’s readiness to make the change.

---

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)