objc2_intents/generated/
INGetVisualCodeIntent.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(INIntent, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "INIntent")]
15 #[deprecated = "INGetVisualCodeIntent is deprecated. There is no replacement."]
16 pub struct INGetVisualCodeIntent;
17);
18
19#[cfg(feature = "INIntent")]
20extern_conformance!(
21 unsafe impl NSCoding for INGetVisualCodeIntent {}
22);
23
24#[cfg(feature = "INIntent")]
25extern_conformance!(
26 unsafe impl NSCopying for INGetVisualCodeIntent {}
27);
28
29#[cfg(feature = "INIntent")]
30unsafe impl CopyingHelper for INGetVisualCodeIntent {
31 type Result = Self;
32}
33
34#[cfg(feature = "INIntent")]
35extern_conformance!(
36 unsafe impl NSObjectProtocol for INGetVisualCodeIntent {}
37);
38
39#[cfg(feature = "INIntent")]
40extern_conformance!(
41 unsafe impl NSSecureCoding for INGetVisualCodeIntent {}
42);
43
44#[cfg(feature = "INIntent")]
45impl INGetVisualCodeIntent {
46 extern_methods!(
47 #[cfg(feature = "INVisualCodeType")]
48 #[deprecated = "INGetVisualCodeIntent is deprecated. There is no replacement."]
49 #[unsafe(method(initWithVisualCodeType:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithVisualCodeType(
52 this: Allocated<Self>,
53 visual_code_type: INVisualCodeType,
54 ) -> Retained<Self>;
55
56 #[cfg(feature = "INVisualCodeType")]
57 #[deprecated = "INGetVisualCodeIntent is deprecated. There is no replacement."]
58 #[unsafe(method(visualCodeType))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn visualCodeType(&self) -> INVisualCodeType;
61 );
62}
63
64#[cfg(feature = "INIntent")]
66impl INGetVisualCodeIntent {
67 extern_methods!(
68 #[unsafe(method(init))]
69 #[unsafe(method_family = init)]
70 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
71
72 #[unsafe(method(new))]
73 #[unsafe(method_family = new)]
74 pub unsafe fn new() -> Retained<Self>;
75 );
76}
77
78extern_protocol!(
79 #[deprecated = "INGetVisualCodeIntentHandling is deprecated. There is no replacement."]
85 pub unsafe trait INGetVisualCodeIntentHandling: NSObjectProtocol {
86 #[cfg(all(
87 feature = "INGetVisualCodeIntentResponse",
88 feature = "INIntent",
89 feature = "INIntentResponse",
90 feature = "block2"
91 ))]
92 #[deprecated = "INGetVisualCodeIntentHandling is deprecated. There is no replacement."]
104 #[unsafe(method(handleGetVisualCode:completion:))]
105 #[unsafe(method_family = none)]
106 unsafe fn handleGetVisualCode_completion(
107 &self,
108 intent: &INGetVisualCodeIntent,
109 completion: &block2::DynBlock<dyn Fn(NonNull<INGetVisualCodeIntentResponse>)>,
110 );
111
112 #[cfg(all(
113 feature = "INGetVisualCodeIntentResponse",
114 feature = "INIntent",
115 feature = "INIntentResponse",
116 feature = "block2"
117 ))]
118 #[deprecated = "INGetVisualCodeIntentHandling is deprecated. There is no replacement."]
130 #[optional]
131 #[unsafe(method(confirmGetVisualCode:completion:))]
132 #[unsafe(method_family = none)]
133 unsafe fn confirmGetVisualCode_completion(
134 &self,
135 intent: &INGetVisualCodeIntent,
136 completion: &block2::DynBlock<dyn Fn(NonNull<INGetVisualCodeIntentResponse>)>,
137 );
138
139 #[cfg(all(
140 feature = "INIntent",
141 feature = "INIntentResolutionResult",
142 feature = "INVisualCodeTypeResolutionResult",
143 feature = "block2"
144 ))]
145 #[deprecated = "INGetVisualCodeIntentHandling is deprecated. There is no replacement."]
157 #[optional]
158 #[unsafe(method(resolveVisualCodeTypeForGetVisualCode:withCompletion:))]
159 #[unsafe(method_family = none)]
160 unsafe fn resolveVisualCodeTypeForGetVisualCode_withCompletion(
161 &self,
162 intent: &INGetVisualCodeIntent,
163 completion: &block2::DynBlock<dyn Fn(NonNull<INVisualCodeTypeResolutionResult>)>,
164 );
165 }
166);