---
title: "init(carName:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/ingetcarpowerlevelstatusintent/init(carname:)"
---

# init(carName:)

Initializes a car power intent with the provided car name.

## Declaration

```swift
init(carName: INSpeakableString?)
```

## Parameters

- `carName`: A name that identifies the user’s car. If nil, the intent is instantiated with a doc://com.apple.sirikit/documentation/Intents/INGetCarPowerLevelStatusIntent/carName property containing the string myCar.

## Return Value

Return Value A newly initialized INGetCarPowerLevelStatusIntent object.

## Discussion

Discussion Normally, you do not create instances of this class yourself. Instead, Siri creates instances when the user asks for the car’s power level. However, you can use this method during testing to create intent objects to validate your intent-handling code paths.
