objc2_ui_kit/generated/
UIVideoEditorController.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(UINavigationController, UIViewController, UIResponder, NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(all(
16 feature = "UINavigationController",
17 feature = "UIResponder",
18 feature = "UIViewController"
19 ))]
20 pub struct UIVideoEditorController;
21);
22
23#[cfg(all(
24 feature = "UINavigationController",
25 feature = "UIResponder",
26 feature = "UIViewController"
27))]
28extern_conformance!(
29 unsafe impl NSCoding for UIVideoEditorController {}
30);
31
32#[cfg(all(
33 feature = "UINavigationController",
34 feature = "UIResponder",
35 feature = "UIViewController"
36))]
37extern_conformance!(
38 unsafe impl NSObjectProtocol for UIVideoEditorController {}
39);
40
41#[cfg(all(
42 feature = "UIAppearance",
43 feature = "UINavigationController",
44 feature = "UIResponder",
45 feature = "UIViewController"
46))]
47extern_conformance!(
48 unsafe impl UIAppearanceContainer for UIVideoEditorController {}
49);
50
51#[cfg(all(
52 feature = "UINavigationController",
53 feature = "UIResponder",
54 feature = "UIViewController"
55))]
56extern_conformance!(
57 unsafe impl UIContentContainer for UIVideoEditorController {}
58);
59
60#[cfg(all(
61 feature = "UIFocus",
62 feature = "UINavigationController",
63 feature = "UIResponder",
64 feature = "UIViewController"
65))]
66extern_conformance!(
67 unsafe impl UIFocusEnvironment for UIVideoEditorController {}
68);
69
70#[cfg(all(
71 feature = "UINavigationController",
72 feature = "UIResponder",
73 feature = "UIViewController"
74))]
75extern_conformance!(
76 unsafe impl UIResponderStandardEditActions for UIVideoEditorController {}
77);
78
79#[cfg(all(
80 feature = "UINavigationController",
81 feature = "UIResponder",
82 feature = "UITraitCollection",
83 feature = "UIViewController"
84))]
85extern_conformance!(
86 unsafe impl UITraitEnvironment for UIVideoEditorController {}
87);
88
89#[cfg(all(
90 feature = "UINavigationController",
91 feature = "UIResponder",
92 feature = "UIViewController"
93))]
94impl UIVideoEditorController {
95 extern_methods!(
96 #[unsafe(method(canEditVideoAtPath:))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn canEditVideoAtPath(video_path: &NSString, mtm: MainThreadMarker) -> bool;
99
100 #[unsafe(method(delegate))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn delegate(
103 &self,
104 ) -> Option<
105 Retained<
106 AnyObject, >,
108 >;
109
110 #[unsafe(method(setDelegate:))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn setDelegate(
114 &self,
115 delegate: Option<
116 &AnyObject, >,
118 );
119
120 #[unsafe(method(videoPath))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn videoPath(&self) -> Retained<NSString>;
123
124 #[unsafe(method(setVideoPath:))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn setVideoPath(&self, video_path: &NSString);
128
129 #[unsafe(method(videoMaximumDuration))]
130 #[unsafe(method_family = none)]
131 pub unsafe fn videoMaximumDuration(&self) -> NSTimeInterval;
132
133 #[unsafe(method(setVideoMaximumDuration:))]
135 #[unsafe(method_family = none)]
136 pub unsafe fn setVideoMaximumDuration(&self, video_maximum_duration: NSTimeInterval);
137
138 #[cfg(feature = "UIImagePickerController")]
139 #[unsafe(method(videoQuality))]
140 #[unsafe(method_family = none)]
141 pub unsafe fn videoQuality(&self) -> UIImagePickerControllerQualityType;
142
143 #[cfg(feature = "UIImagePickerController")]
144 #[unsafe(method(setVideoQuality:))]
146 #[unsafe(method_family = none)]
147 pub unsafe fn setVideoQuality(&self, video_quality: UIImagePickerControllerQualityType);
148 );
149}
150
151#[cfg(all(
153 feature = "UINavigationController",
154 feature = "UIResponder",
155 feature = "UIViewController"
156))]
157impl UIVideoEditorController {
158 extern_methods!(
159 #[unsafe(method(initWithNavigationBarClass:toolbarClass:))]
160 #[unsafe(method_family = init)]
161 pub unsafe fn initWithNavigationBarClass_toolbarClass(
162 this: Allocated<Self>,
163 navigation_bar_class: Option<&AnyClass>,
164 toolbar_class: Option<&AnyClass>,
165 ) -> Retained<Self>;
166
167 #[unsafe(method(initWithRootViewController:))]
168 #[unsafe(method_family = init)]
169 pub unsafe fn initWithRootViewController(
170 this: Allocated<Self>,
171 root_view_controller: &UIViewController,
172 ) -> Retained<Self>;
173
174 #[unsafe(method(initWithNibName:bundle:))]
175 #[unsafe(method_family = init)]
176 pub unsafe fn initWithNibName_bundle(
177 this: Allocated<Self>,
178 nib_name_or_nil: Option<&NSString>,
179 nib_bundle_or_nil: Option<&NSBundle>,
180 ) -> Retained<Self>;
181
182 #[unsafe(method(initWithCoder:))]
183 #[unsafe(method_family = init)]
184 pub unsafe fn initWithCoder(
185 this: Allocated<Self>,
186 a_decoder: &NSCoder,
187 ) -> Option<Retained<Self>>;
188 );
189}
190
191#[cfg(all(
193 feature = "UINavigationController",
194 feature = "UIResponder",
195 feature = "UIViewController"
196))]
197impl UIVideoEditorController {
198 extern_methods!(
199 #[unsafe(method(init))]
200 #[unsafe(method_family = init)]
201 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
202
203 #[unsafe(method(new))]
204 #[unsafe(method_family = new)]
205 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
206 );
207}
208
209extern_protocol!(
210 pub unsafe trait UIVideoEditorControllerDelegate:
212 NSObjectProtocol + MainThreadOnly
213 {
214 #[cfg(all(
215 feature = "UINavigationController",
216 feature = "UIResponder",
217 feature = "UIViewController"
218 ))]
219 #[optional]
220 #[unsafe(method(videoEditorController:didSaveEditedVideoToPath:))]
221 #[unsafe(method_family = none)]
222 unsafe fn videoEditorController_didSaveEditedVideoToPath(
223 &self,
224 editor: &UIVideoEditorController,
225 edited_video_path: &NSString,
226 );
227
228 #[cfg(all(
229 feature = "UINavigationController",
230 feature = "UIResponder",
231 feature = "UIViewController"
232 ))]
233 #[optional]
234 #[unsafe(method(videoEditorController:didFailWithError:))]
235 #[unsafe(method_family = none)]
236 unsafe fn videoEditorController_didFailWithError(
237 &self,
238 editor: &UIVideoEditorController,
239 error: &NSError,
240 );
241
242 #[cfg(all(
243 feature = "UINavigationController",
244 feature = "UIResponder",
245 feature = "UIViewController"
246 ))]
247 #[optional]
248 #[unsafe(method(videoEditorControllerDidCancel:))]
249 #[unsafe(method_family = none)]
250 unsafe fn videoEditorControllerDidCancel(&self, editor: &UIVideoEditorController);
251 }
252);