objc2_intents/generated/
INTemperatureResolutionResult.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/intents/intemperatureresolutionresult?language=objc)
11    #[unsafe(super(INIntentResolutionResult, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "INIntentResolutionResult")]
14    pub struct INTemperatureResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19    unsafe impl NSObjectProtocol for INTemperatureResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INTemperatureResolutionResult {
24    extern_methods!(
25        #[unsafe(method(successWithResolvedTemperature:))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn successWithResolvedTemperature(
28            resolved_temperature: &NSMeasurement<NSUnitTemperature>,
29        ) -> Retained<Self>;
30
31        #[unsafe(method(disambiguationWithTemperaturesToDisambiguate:))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn disambiguationWithTemperaturesToDisambiguate(
34            temperatures_to_disambiguate: &NSArray<NSMeasurement<NSUnitTemperature>>,
35        ) -> Retained<Self>;
36
37        #[unsafe(method(confirmationRequiredWithTemperatureToConfirm:))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn confirmationRequiredWithTemperatureToConfirm(
40            temperature_to_confirm: Option<&NSMeasurement<NSUnitTemperature>>,
41        ) -> Retained<Self>;
42    );
43}
44
45/// Methods declared on superclass `INIntentResolutionResult`.
46#[cfg(feature = "INIntentResolutionResult")]
47impl INTemperatureResolutionResult {
48    extern_methods!(
49        #[unsafe(method(init))]
50        #[unsafe(method_family = init)]
51        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
52
53        #[unsafe(method(needsValue))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn needsValue() -> Retained<Self>;
56
57        #[unsafe(method(notRequired))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn notRequired() -> Retained<Self>;
60
61        #[unsafe(method(unsupported))]
62        #[unsafe(method_family = none)]
63        pub unsafe fn unsupported() -> Retained<Self>;
64    );
65}
66
67/// Methods declared on superclass `NSObject`.
68#[cfg(feature = "INIntentResolutionResult")]
69impl INTemperatureResolutionResult {
70    extern_methods!(
71        #[unsafe(method(new))]
72        #[unsafe(method_family = new)]
73        pub unsafe fn new() -> Retained<Self>;
74    );
75}