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