objc2_intents/generated/
INRelativeSettingResolutionResult.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::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inrelativesettingresolutionresult?language=objc)
10    #[unsafe(super(INIntentResolutionResult, NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "INIntentResolutionResult")]
13    #[deprecated = "INRelativeSettingResolutionResult is deprecated. There is no replacement."]
14    pub struct INRelativeSettingResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19    unsafe impl NSObjectProtocol for INRelativeSettingResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INRelativeSettingResolutionResult {
24    extern_methods!(
25        #[cfg(feature = "INRelativeSetting")]
26        #[deprecated = "INRelativeSettingResolutionResult is deprecated. There is no replacement."]
27        #[unsafe(method(successWithResolvedRelativeSetting:))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn successWithResolvedRelativeSetting(
30            resolved_relative_setting: INRelativeSetting,
31        ) -> Retained<Self>;
32
33        #[cfg(feature = "INRelativeSetting")]
34        #[deprecated]
35        #[unsafe(method(successWithResolvedValue:))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn successWithResolvedValue(resolved_value: INRelativeSetting)
38            -> Retained<Self>;
39
40        #[cfg(feature = "INRelativeSetting")]
41        #[deprecated = "INRelativeSettingResolutionResult is deprecated. There is no replacement."]
42        #[unsafe(method(confirmationRequiredWithRelativeSettingToConfirm:))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn confirmationRequiredWithRelativeSettingToConfirm(
45            relative_setting_to_confirm: INRelativeSetting,
46        ) -> Retained<Self>;
47
48        #[cfg(feature = "INRelativeSetting")]
49        #[deprecated]
50        #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn confirmationRequiredWithValueToConfirm(
53            value_to_confirm: INRelativeSetting,
54        ) -> Retained<Self>;
55    );
56}
57
58/// Methods declared on superclass `INIntentResolutionResult`.
59#[cfg(feature = "INIntentResolutionResult")]
60impl INRelativeSettingResolutionResult {
61    extern_methods!(
62        #[unsafe(method(init))]
63        #[unsafe(method_family = init)]
64        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
65
66        #[unsafe(method(needsValue))]
67        #[unsafe(method_family = none)]
68        pub unsafe fn needsValue() -> Retained<Self>;
69
70        #[unsafe(method(notRequired))]
71        #[unsafe(method_family = none)]
72        pub unsafe fn notRequired() -> Retained<Self>;
73
74        #[unsafe(method(unsupported))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn unsupported() -> Retained<Self>;
77    );
78}
79
80/// Methods declared on superclass `NSObject`.
81#[cfg(feature = "INIntentResolutionResult")]
82impl INRelativeSettingResolutionResult {
83    extern_methods!(
84        #[unsafe(method(new))]
85        #[unsafe(method_family = new)]
86        pub unsafe fn new() -> Retained<Self>;
87    );
88}