<!--
{
  "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/INSetAudioSourceInCarIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSetAudioSourceInCarIntentResponse"
  },
  "title" : "INSetAudioSourceInCarIntentResponse"
}
-->

# INSetAudioSourceInCarIntentResponse

Your app’s response to a set audio source in car intent.

```
class INSetAudioSourceInCarIntentResponse
```

## Overview

An [`INSetAudioSourceInCarIntentResponse`](/documentation/Intents/INSetAudioSourceInCarIntentResponse) object contains the status of changing the audio source in the user’s vehicle. You create instances of this class when confirming or handling a set audio source in car intent.

You create an [`INSetAudioSourceInCarIntentResponse`](/documentation/Intents/INSetAudioSourceInCarIntentResponse) object in the [`confirm(intent:completion:)`](/documentation/Intents/INSetAudioSourceInCarIntentHandling/confirm(intent:completion:)) and [`handle(intent:completion:)`](/documentation/Intents/INSetAudioSourceInCarIntentHandling/handle(intent:completion:)) methods of your set audio source in car handler object. For more information about implementing your handler object, see [`INSetAudioSourceInCarIntentHandling`](/documentation/Intents/INSetAudioSourceInCarIntentHandling).

## Topics

### Initializing the Response Object

[`init(code:userActivity:)`](/documentation/Intents/INSetAudioSourceInCarIntentResponse/init(code:userActivity:))

Initializes the response object with the specified code and user activity object.

### Getting the Response Code

[`code`](/documentation/Intents/INSetAudioSourceInCarIntentResponse/code)

The code indicating whether you successfully handled the intent.

[`INSetAudioSourceInCarIntentResponseCode`](/documentation/Intents/INSetAudioSourceInCarIntentResponseCode)

Constants indicating the state of the response.



---

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)