---
title: INSetAudioSourceInCarIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/insetaudiosourceincarintentresponse
---

# INSetAudioSourceInCarIntentResponse

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

## Declaration

```swift
class INSetAudioSourceInCarIntentResponse
```

## Overview

Overview An 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 object in the confirm(intent:completion:) and handle(intent:completion:) methods of your set audio source in car handler object. For more information about implementing your handler object, see INSetAudioSourceInCarIntentHandling.

## Topics

### Initializing the Response Object

- [init(code:userActivity:)](intents/insetaudiosourceincarintentresponse/init(code:useractivity:).md)

### Getting the Response Code

- [code](intents/insetaudiosourceincarintentresponse/code.md)
- [INSetAudioSourceInCarIntentResponseCode](intents/insetaudiosourceincarintentresponsecode.md)

## Relationships

### Inherits From

- [INIntentResponse](intents/inintentresponse.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### CarPlay Audio Source

- [INSetAudioSourceInCarIntentHandling](intents/insetaudiosourceincarintenthandling.md)
- [INSetAudioSourceInCarIntent](intents/insetaudiosourceincarintent.md)
