use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntent")]
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
pub struct INSetClimateSettingsInCarIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INSetClimateSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INSetClimateSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INSetClimateSettingsInCarIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSetClimateSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INSetClimateSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
impl INSetClimateSettingsInCarIntent {
extern_methods!(
#[cfg(all(
feature = "INCarAirCirculationMode",
feature = "INCarSeat",
feature = "INRelativeSetting",
feature = "INSpeakableString"
))]
#[unsafe(method(initWithEnableFan:enableAirConditioner:enableClimateControl:enableAutoMode:airCirculationMode:fanSpeedIndex:fanSpeedPercentage:relativeFanSpeedSetting:temperature:relativeTemperatureSetting:climateZone:carName:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithEnableFan_enableAirConditioner_enableClimateControl_enableAutoMode_airCirculationMode_fanSpeedIndex_fanSpeedPercentage_relativeFanSpeedSetting_temperature_relativeTemperatureSetting_climateZone_carName(
this: Allocated<Self>,
enable_fan: Option<&NSNumber>,
enable_air_conditioner: Option<&NSNumber>,
enable_climate_control: Option<&NSNumber>,
enable_auto_mode: Option<&NSNumber>,
air_circulation_mode: INCarAirCirculationMode,
fan_speed_index: Option<&NSNumber>,
fan_speed_percentage: Option<&NSNumber>,
relative_fan_speed_setting: INRelativeSetting,
temperature: Option<&NSMeasurement<NSUnitTemperature>>,
relative_temperature_setting: INRelativeSetting,
climate_zone: INCarSeat,
car_name: Option<&INSpeakableString>,
) -> Retained<Self>;
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(enableFan))]
#[unsafe(method_family = none)]
pub unsafe fn enableFan(&self) -> Option<Retained<NSNumber>>;
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(enableAirConditioner))]
#[unsafe(method_family = none)]
pub unsafe fn enableAirConditioner(&self) -> Option<Retained<NSNumber>>;
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(enableClimateControl))]
#[unsafe(method_family = none)]
pub unsafe fn enableClimateControl(&self) -> Option<Retained<NSNumber>>;
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(enableAutoMode))]
#[unsafe(method_family = none)]
pub unsafe fn enableAutoMode(&self) -> Option<Retained<NSNumber>>;
#[cfg(feature = "INCarAirCirculationMode")]
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(airCirculationMode))]
#[unsafe(method_family = none)]
pub unsafe fn airCirculationMode(&self) -> INCarAirCirculationMode;
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(fanSpeedIndex))]
#[unsafe(method_family = none)]
pub unsafe fn fanSpeedIndex(&self) -> Option<Retained<NSNumber>>;
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(fanSpeedPercentage))]
#[unsafe(method_family = none)]
pub unsafe fn fanSpeedPercentage(&self) -> Option<Retained<NSNumber>>;
#[cfg(feature = "INRelativeSetting")]
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(relativeFanSpeedSetting))]
#[unsafe(method_family = none)]
pub unsafe fn relativeFanSpeedSetting(&self) -> INRelativeSetting;
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(temperature))]
#[unsafe(method_family = none)]
pub unsafe fn temperature(&self) -> Option<Retained<NSMeasurement<NSUnitTemperature>>>;
#[cfg(feature = "INRelativeSetting")]
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(relativeTemperatureSetting))]
#[unsafe(method_family = none)]
pub unsafe fn relativeTemperatureSetting(&self) -> INRelativeSetting;
#[cfg(feature = "INCarSeat")]
#[deprecated = "INSetClimateSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(climateZone))]
#[unsafe(method_family = none)]
pub unsafe fn climateZone(&self) -> INCarSeat;
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(carName))]
#[unsafe(method_family = none)]
pub unsafe fn carName(&self) -> Option<Retained<INSpeakableString>>;
);
}
#[cfg(feature = "INIntent")]
impl INSetClimateSettingsInCarIntent {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_protocol!(
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INSetClimateSettingsInCarIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetClimateSettingsInCarIntentResponse",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleSetClimateSettingsInCar:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleSetClimateSettingsInCar_completion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSetClimateSettingsInCarIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetClimateSettingsInCarIntentResponse",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmSetClimateSettingsInCar:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmSetClimateSettingsInCar_completion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSetClimateSettingsInCarIntentResponse>)>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveEnableFanForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveEnableFanForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveEnableAirConditionerForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveEnableAirConditionerForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveEnableClimateControlForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveEnableClimateControlForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveEnableAutoModeForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveEnableAutoModeForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
#[cfg(all(
feature = "INCarAirCirculationModeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveAirCirculationModeForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveAirCirculationModeForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INCarAirCirculationModeResolutionResult>)>,
);
#[cfg(all(
feature = "INIntegerResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveFanSpeedIndexForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveFanSpeedIndexForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INIntegerResolutionResult>)>,
);
#[cfg(all(
feature = "INDoubleResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveFanSpeedPercentageForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveFanSpeedPercentageForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INDoubleResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INRelativeSettingResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveRelativeFanSpeedSettingForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveRelativeFanSpeedSettingForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INRelativeSettingResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INTemperatureResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveTemperatureForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTemperatureForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INTemperatureResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INRelativeSettingResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveRelativeTemperatureSettingForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveRelativeTemperatureSettingForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INRelativeSettingResolutionResult>)>,
);
#[cfg(all(
feature = "INCarSeatResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetClimateSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveClimateZoneForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveClimateZoneForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INCarSeatResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSpeakableStringResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveCarNameForSetClimateSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveCarNameForSetClimateSettingsInCar_withCompletion(
&self,
intent: &INSetClimateSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
);
}
);