<!--
{
  "availability" : [
    "iOS: 10.0.0 - 11.0.0",
    "iPadOS: 10.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSetProfileInCarIntent/init(profileNumber:profileLabel:defaultProfile:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "s:So23INSetProfileInCarIntentC7IntentsE13profileNumber0G5Label07defaultB0ABSiSg_SSSgAGtcfc"
  },
  "title" : "init(profileNumber:profileLabel:defaultProfile:)"
}
-->

# init(profileNumber:profileLabel:defaultProfile:)

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

```
convenience init(profileNumber: Int?, profileLabel: String?, defaultProfile: Int?)
```

## 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.

`profileLabel`

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

`defaultProfile`

A Boolean value that indicates whether the profile should become the default 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)