objc2_intents/generated/
INGetVisualCodeIntentResponse.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
13#[repr(transparent)]
14#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
15pub struct INGetVisualCodeIntentResponseCode(pub NSInteger);
16impl INGetVisualCodeIntentResponseCode {
17 #[doc(alias = "INGetVisualCodeIntentResponseCodeUnspecified")]
18 #[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
19 pub const Unspecified: Self = Self(0);
20 #[doc(alias = "INGetVisualCodeIntentResponseCodeReady")]
21 #[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
22 pub const Ready: Self = Self(1);
23 #[doc(alias = "INGetVisualCodeIntentResponseCodeContinueInApp")]
24 #[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
25 pub const ContinueInApp: Self = Self(2);
26 #[doc(alias = "INGetVisualCodeIntentResponseCodeInProgress")]
27 #[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
28 pub const InProgress: Self = Self(3);
29 #[doc(alias = "INGetVisualCodeIntentResponseCodeSuccess")]
30 #[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
31 pub const Success: Self = Self(4);
32 #[doc(alias = "INGetVisualCodeIntentResponseCodeFailure")]
33 #[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
34 pub const Failure: Self = Self(5);
35 #[doc(alias = "INGetVisualCodeIntentResponseCodeFailureRequiringAppLaunch")]
36 #[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
37 pub const FailureRequiringAppLaunch: Self = Self(6);
38 #[doc(alias = "INGetVisualCodeIntentResponseCodeFailureAppConfigurationRequired")]
39 #[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
40 pub const FailureAppConfigurationRequired: Self = Self(7);
41}
42
43unsafe impl Encode for INGetVisualCodeIntentResponseCode {
44 const ENCODING: Encoding = NSInteger::ENCODING;
45}
46
47unsafe impl RefEncode for INGetVisualCodeIntentResponseCode {
48 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
49}
50
51extern_class!(
52 #[unsafe(super(INIntentResponse, NSObject))]
54 #[derive(Debug, PartialEq, Eq, Hash)]
55 #[cfg(feature = "INIntentResponse")]
56 #[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
57 pub struct INGetVisualCodeIntentResponse;
58);
59
60#[cfg(feature = "INIntentResponse")]
61extern_conformance!(
62 unsafe impl NSCoding for INGetVisualCodeIntentResponse {}
63);
64
65#[cfg(feature = "INIntentResponse")]
66extern_conformance!(
67 unsafe impl NSCopying for INGetVisualCodeIntentResponse {}
68);
69
70#[cfg(feature = "INIntentResponse")]
71unsafe impl CopyingHelper for INGetVisualCodeIntentResponse {
72 type Result = Self;
73}
74
75#[cfg(feature = "INIntentResponse")]
76extern_conformance!(
77 unsafe impl NSObjectProtocol for INGetVisualCodeIntentResponse {}
78);
79
80#[cfg(feature = "INIntentResponse")]
81extern_conformance!(
82 unsafe impl NSSecureCoding for INGetVisualCodeIntentResponse {}
83);
84
85#[cfg(feature = "INIntentResponse")]
86impl INGetVisualCodeIntentResponse {
87 extern_methods!(
88 #[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
89 #[unsafe(method(init))]
90 #[unsafe(method_family = init)]
91 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
92
93 #[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
94 #[unsafe(method(initWithCode:userActivity:))]
95 #[unsafe(method_family = init)]
96 pub unsafe fn initWithCode_userActivity(
97 this: Allocated<Self>,
98 code: INGetVisualCodeIntentResponseCode,
99 user_activity: Option<&NSUserActivity>,
100 ) -> Retained<Self>;
101
102 #[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
103 #[unsafe(method(code))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn code(&self) -> INGetVisualCodeIntentResponseCode;
106
107 #[cfg(feature = "INImage")]
108 #[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
109 #[unsafe(method(visualCodeImage))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn visualCodeImage(&self) -> Option<Retained<INImage>>;
112
113 #[cfg(feature = "INImage")]
114 #[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
118 #[unsafe(method(setVisualCodeImage:))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn setVisualCodeImage(&self, visual_code_image: Option<&INImage>);
121 );
122}
123
124#[cfg(feature = "INIntentResponse")]
126impl INGetVisualCodeIntentResponse {
127 extern_methods!(
128 #[unsafe(method(new))]
129 #[unsafe(method_family = new)]
130 pub unsafe fn new() -> Retained<Self>;
131 );
132}