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

# init(enable:defroster:carName:)

Initializes the intent object with the specified defroster information.

```
@nonobjc convenience init(enable: Bool? = nil, defroster: INCarDefroster = .unknown, carName: INSpeakableString? = nil)
```

## Parameters

`enable`

A Boolean value indicating whether to enable or disable the defroster. Specify <doc://com.apple.documentation/documentation/Swift/true> to turn the defroster on or <doc://com.apple.documentation/documentation/Swift/false> to turn it off.

`defroster`

The defroster to enable or disable.

`carName`

The name of the car to apply the defroster setting to.

## 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 change the vehicle’s defroster settings. 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)