Contents

initWithEnable:defroster:

Initializes the intent object with the specified defroster information.

Declaration

- (instancetype) initWithEnable:(NSNumber *) enable defroster:(INCarDefroster) defroster;

Parameters

  • enable:

    A number object containing a Boolean value indicating whether to enable or disable the defroster. Specify True to turn the defroster on or False to turn it off.

  • defroster:

    The defroster to enable or disable.

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.

See Also

Initializing the Intent Object