initWithEnableHeating:enableCooling:enableMassage:seat:level:relativeLevelSetting:carName:
Initializes the intent object with the specified climate settings information.
Declaration
- (instancetype) initWithEnableHeating:(NSNumber *) enableHeating enableCooling:(NSNumber *) enableCooling enableMassage:(NSNumber *) enableMassage seat:(INCarSeat) seat level:(NSNumber *) level relativeLevelSetting:(INRelativeSetting) relativeLevelSetting carName:(INSpeakableString *) carName;Parameters
- enableHeating:
A Boolean value indicating whether to enable the seat heater system. Specify
nilif you don’t want to modify this setting. - enableCooling:
A Boolean value indicating whether to enable the seat cooling system. Specify
nilif you don’t want to modify this setting. - enableMassage:
A Boolean value indicating whether to enable the seat massage system. Specify
nilif you don’t want to modify this setting. - seat:
The seat position to modify.
- level:
The heating, cooling, or massage level, specified as an integer indicating the position of the corresponding controls. Specify
nilif you don’t want to use this parameter to make the change. - relativeLevelSetting:
The heating, cooling, or massage level, specified as a change relative to the current level. Specify
nilif you don’t want to use this parameter to make the change. - carName:
The name of the car to apply the settings to.
Return Value
An initialized intent object or nil if the object could not be created.
Discussion
Normally, you do not create instances of this class yourself. Instead, Siri creates instances when the user asks to change the vehicle’s seat settings. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths. Your test code should modify the settings for only one system at a time.