initWithEnable:defroster:carName:
Initializes the intent object with the specified defroster information.
Declaration
- (instancetype) initWithEnable:(NSNumber *) enable defroster:(INCarDefroster) defroster carName:(INSpeakableString *) carName;Parameters
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.