objc2_ui_kit/generated/
UIDocumentPickerExtensionViewController.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(UIViewController, UIResponder, NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
16 #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
17 pub struct UIDocumentPickerExtensionViewController;
18);
19
20#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
21unsafe impl NSCoding for UIDocumentPickerExtensionViewController {}
22
23#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
24unsafe impl NSObjectProtocol for UIDocumentPickerExtensionViewController {}
25
26#[cfg(all(
27 feature = "UIAppearance",
28 feature = "UIResponder",
29 feature = "UIViewController"
30))]
31unsafe impl UIAppearanceContainer for UIDocumentPickerExtensionViewController {}
32
33#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
34unsafe impl UIContentContainer for UIDocumentPickerExtensionViewController {}
35
36#[cfg(all(
37 feature = "UIFocus",
38 feature = "UIResponder",
39 feature = "UIViewController"
40))]
41unsafe impl UIFocusEnvironment for UIDocumentPickerExtensionViewController {}
42
43#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
44unsafe impl UIResponderStandardEditActions for UIDocumentPickerExtensionViewController {}
45
46#[cfg(all(
47 feature = "UIResponder",
48 feature = "UITraitCollection",
49 feature = "UIViewController"
50))]
51unsafe impl UITraitEnvironment for UIDocumentPickerExtensionViewController {}
52
53#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
54impl UIDocumentPickerExtensionViewController {
55 extern_methods!(
56 #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
57 #[unsafe(method(dismissGrantingAccessToURL:))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn dismissGrantingAccessToURL(&self, url: Option<&NSURL>);
60
61 #[cfg(feature = "UIDocumentPickerViewController")]
62 #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
63 #[unsafe(method(prepareForPresentationInMode:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn prepareForPresentationInMode(&self, mode: UIDocumentPickerMode);
66
67 #[cfg(feature = "UIDocumentPickerViewController")]
68 #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
69 #[unsafe(method(documentPickerMode))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn documentPickerMode(&self) -> UIDocumentPickerMode;
72
73 #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
74 #[unsafe(method(originalURL))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn originalURL(&self) -> Option<Retained<NSURL>>;
77
78 #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
79 #[unsafe(method(validTypes))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn validTypes(&self) -> Option<Retained<NSArray<NSString>>>;
82
83 #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
84 #[unsafe(method(providerIdentifier))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn providerIdentifier(&self) -> Retained<NSString>;
87
88 #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
89 #[unsafe(method(documentStorageURL))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn documentStorageURL(&self) -> Option<Retained<NSURL>>;
92 );
93}
94
95#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
97impl UIDocumentPickerExtensionViewController {
98 extern_methods!(
99 #[unsafe(method(initWithNibName:bundle:))]
100 #[unsafe(method_family = init)]
101 pub unsafe fn initWithNibName_bundle(
102 this: Allocated<Self>,
103 nib_name_or_nil: Option<&NSString>,
104 nib_bundle_or_nil: Option<&NSBundle>,
105 ) -> Retained<Self>;
106
107 #[unsafe(method(initWithCoder:))]
108 #[unsafe(method_family = init)]
109 pub unsafe fn initWithCoder(
110 this: Allocated<Self>,
111 coder: &NSCoder,
112 ) -> Option<Retained<Self>>;
113 );
114}
115
116#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
118impl UIDocumentPickerExtensionViewController {
119 extern_methods!(
120 #[unsafe(method(init))]
121 #[unsafe(method_family = init)]
122 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
123
124 #[unsafe(method(new))]
125 #[unsafe(method_family = new)]
126 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
127 );
128}