---
title: "initWithEnable:defroster:carName:"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insetdefrostersettingsincarintent/initwithenable:defroster:carname:"
---

# initWithEnable:defroster:carName:

Initializes the intent object with the specified defroster information.

## Declaration

```occ
- (instancetype) initWithEnable:(NSNumber *) enable defroster:(INCarDefroster) defroster carName:(INSpeakableString *) carName;
```

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

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

## Discussion

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.

## See Also

### Initializing the Intent Object

- [initWithEnable:defroster:](intents/insetdefrostersettingsincarintent/initwithenable:defroster:.md)
