<!--
{
  "availability" : [
    "iOS: 12.0.0 - 15.0.0",
    "iPadOS: 12.0.0 - 15.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSetProfileInCarIntent/init(profileNumber:profileName:isDefaultProfile:carName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "s:So23INSetProfileInCarIntentC7IntentsE13profileNumber0G4Name09isDefaultB003carI0ABSiSg_SSSgSbSgSo17INSpeakableStringCSgtcfc"
  },
  "title" : "init(profileNumber:profileName:isDefaultProfile:carName:)"
}
-->

# init(profileNumber:profileName:isDefaultProfile:carName:)

Initializes the intent object with the specified profile name and index information.

```
convenience init(profileNumber: Int? = nil, profileName: String? = nil, isDefaultProfile: Bool? = nil, carName: INSpeakableString? = nil)
```

## Parameters

`profileNumber`

An integer number that indicates which profile to use. This value represents the index of the profile in your system. The index can be a soft index inside your vehicle’s electronics systems or it can correspond to physical buttons that the user presses.

`profileName`

The name of the profile. Specify `nil` when creating a profile based on a numerical index.

`isDefaultProfile`

A Boolean value that indicates whether the profile should become the default profile.

`carName`

The name of the car associated with the profile.

## Return Value

An initialized intent object or `nil` if the object could not be created.

## Discussion

Normally, you don’t create instances of this class yourself. Instead, Siri creates instances when the user asks to restore settings from a profile. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.

---

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)