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 = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
pub struct INSetSeatSettingsInCarIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INSetSeatSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INSetSeatSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INSetSeatSettingsInCarIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSetSeatSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INSetSeatSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
impl INSetSeatSettingsInCarIntent {
extern_methods!(
#[cfg(all(
feature = "INCarSeat",
feature = "INRelativeSetting",
feature = "INSpeakableString"
))]
#[unsafe(method(initWithEnableHeating:enableCooling:enableMassage:seat:level:relativeLevelSetting:carName:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithEnableHeating_enableCooling_enableMassage_seat_level_relativeLevelSetting_carName(
this: Allocated<Self>,
enable_heating: Option<&NSNumber>,
enable_cooling: Option<&NSNumber>,
enable_massage: Option<&NSNumber>,
seat: INCarSeat,
level: Option<&NSNumber>,
relative_level_setting: INRelativeSetting,
car_name: Option<&INSpeakableString>,
) -> Retained<Self>;
#[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(enableHeating))]
#[unsafe(method_family = none)]
pub unsafe fn enableHeating(&self) -> Option<Retained<NSNumber>>;
#[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(enableCooling))]
#[unsafe(method_family = none)]
pub unsafe fn enableCooling(&self) -> Option<Retained<NSNumber>>;
#[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(enableMassage))]
#[unsafe(method_family = none)]
pub unsafe fn enableMassage(&self) -> Option<Retained<NSNumber>>;
#[cfg(feature = "INCarSeat")]
#[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(seat))]
#[unsafe(method_family = none)]
pub unsafe fn seat(&self) -> INCarSeat;
#[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(level))]
#[unsafe(method_family = none)]
pub unsafe fn level(&self) -> Option<Retained<NSNumber>>;
#[cfg(feature = "INRelativeSetting")]
#[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(relativeLevelSetting))]
#[unsafe(method_family = none)]
pub unsafe fn relativeLevelSetting(&self) -> INRelativeSetting;
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(carName))]
#[unsafe(method_family = none)]
pub unsafe fn carName(&self) -> Option<Retained<INSpeakableString>>;
);
}
#[cfg(feature = "INIntent")]
impl INSetSeatSettingsInCarIntent {
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 = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INSetSeatSettingsInCarIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetSeatSettingsInCarIntentResponse",
feature = "block2"
))]
#[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleSetSeatSettingsInCar:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleSetSeatSettingsInCar_completion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSetSeatSettingsInCarIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetSeatSettingsInCarIntentResponse",
feature = "block2"
))]
#[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmSetSeatSettingsInCar:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmSetSeatSettingsInCar_completion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSetSeatSettingsInCarIntentResponse>)>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveEnableHeatingForSetSeatSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveEnableHeatingForSetSeatSettingsInCar_withCompletion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveEnableCoolingForSetSeatSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveEnableCoolingForSetSeatSettingsInCar_withCompletion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveEnableMassageForSetSeatSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveEnableMassageForSetSeatSettingsInCar_withCompletion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
#[cfg(all(
feature = "INCarSeatResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveSeatForSetSeatSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveSeatForSetSeatSettingsInCar_withCompletion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INCarSeatResolutionResult>)>,
);
#[cfg(all(
feature = "INIntegerResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveLevelForSetSeatSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveLevelForSetSeatSettingsInCar_withCompletion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INIntegerResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INRelativeSettingResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveRelativeLevelSettingForSetSeatSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveRelativeLevelSettingForSetSeatSettingsInCar_withCompletion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INRelativeSettingResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSpeakableStringResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveCarNameForSetSeatSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveCarNameForSetSeatSettingsInCar_withCompletion(
&self,
intent: &INSetSeatSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
);
}
);