---
title: "resolveCarName(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insetprofileincarintenthandling/resolvecarname(for:with:)"
---

# resolveCarName(for:with:)

Resolves the car name.

## Declaration

```swift
optional func resolveCarName(for intent: INSetProfileInCarIntent, with completion: @escaping @Sendable (INSpeakableStringResolutionResult) -> Void)
```

```swift
optional func resolveCarName(for intent: INSetProfileInCarIntent) async -> INSpeakableStringResolutionResult
```

## Parameters

- `intent`: The intent object containing 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 at some point during your implementation of this method. This block has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve the name of the user’s car. If the app has access to more than one car, use the intent’s carName property to identify the correct car. If the app has access to only a single car, you can call the completion block with a notRequired() resolution for Swift and resolutionResultNotRequired resolution for Objective-C, to indicate that the app doesn’t need the car name.

## See Also

### Resolving the Intent Parameters

- [resolveProfileNumber(for:with:)](intents/insetprofileincarintenthandling/resolveprofilenumber(for:with:).md)
- [resolveProfileName(for:with:)](intents/insetprofileincarintenthandling/resolveprofilename(for:with:).md)
- [resolveDefaultProfile(forSetProfileInCar:with:)](intents/insetprofileincarintenthandling/resolvedefaultprofile(forsetprofileincar:with:).md)
