objc2_ui_kit/generated/
UIOpenURLContext.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[thread_kind = MainThreadOnly]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct UIOpenURLContext;
15);
16
17extern_conformance!(
18 unsafe impl NSObjectProtocol for UIOpenURLContext {}
19);
20
21impl UIOpenURLContext {
22 extern_methods!(
23 #[unsafe(method(new))]
24 #[unsafe(method_family = new)]
25 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
26
27 #[unsafe(method(init))]
28 #[unsafe(method_family = init)]
29 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31 #[unsafe(method(URL))]
32 #[unsafe(method_family = none)]
33 pub fn URL(&self) -> Retained<NSURL>;
34
35 #[cfg(feature = "UISceneOptions")]
36 #[unsafe(method(options))]
37 #[unsafe(method_family = none)]
38 pub fn options(&self) -> Retained<UISceneOpenURLOptions>;
39 );
40}