objc2_ui_kit/generated/
UIDocumentPickerExtensionViewController.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uidocumentpickerextensionviewcontroller?language=objc)
12    #[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"))]
21extern_conformance!(
22    unsafe impl NSCoding for UIDocumentPickerExtensionViewController {}
23);
24
25#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
26extern_conformance!(
27    unsafe impl NSObjectProtocol for UIDocumentPickerExtensionViewController {}
28);
29
30#[cfg(all(
31    feature = "UIAppearance",
32    feature = "UIResponder",
33    feature = "UIViewController"
34))]
35extern_conformance!(
36    unsafe impl UIAppearanceContainer for UIDocumentPickerExtensionViewController {}
37);
38
39#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
40extern_conformance!(
41    unsafe impl UIContentContainer for UIDocumentPickerExtensionViewController {}
42);
43
44#[cfg(all(
45    feature = "UIFocus",
46    feature = "UIResponder",
47    feature = "UIViewController"
48))]
49extern_conformance!(
50    unsafe impl UIFocusEnvironment for UIDocumentPickerExtensionViewController {}
51);
52
53#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
54extern_conformance!(
55    unsafe impl UIResponderStandardEditActions for UIDocumentPickerExtensionViewController {}
56);
57
58#[cfg(all(
59    feature = "UIResponder",
60    feature = "UITraitCollection",
61    feature = "UIViewController"
62))]
63extern_conformance!(
64    unsafe impl UITraitEnvironment for UIDocumentPickerExtensionViewController {}
65);
66
67#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
68impl UIDocumentPickerExtensionViewController {
69    extern_methods!(
70        #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
71        #[unsafe(method(dismissGrantingAccessToURL:))]
72        #[unsafe(method_family = none)]
73        pub unsafe fn dismissGrantingAccessToURL(&self, url: Option<&NSURL>);
74
75        #[cfg(feature = "UIDocumentPickerViewController")]
76        #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
77        #[unsafe(method(prepareForPresentationInMode:))]
78        #[unsafe(method_family = none)]
79        pub unsafe fn prepareForPresentationInMode(&self, mode: UIDocumentPickerMode);
80
81        #[cfg(feature = "UIDocumentPickerViewController")]
82        #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
83        #[unsafe(method(documentPickerMode))]
84        #[unsafe(method_family = none)]
85        pub unsafe fn documentPickerMode(&self) -> UIDocumentPickerMode;
86
87        #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
88        #[unsafe(method(originalURL))]
89        #[unsafe(method_family = none)]
90        pub unsafe fn originalURL(&self) -> Option<Retained<NSURL>>;
91
92        #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
93        #[unsafe(method(validTypes))]
94        #[unsafe(method_family = none)]
95        pub unsafe fn validTypes(&self) -> Option<Retained<NSArray<NSString>>>;
96
97        #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
98        #[unsafe(method(providerIdentifier))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn providerIdentifier(&self) -> Retained<NSString>;
101
102        #[deprecated = "Use enumeration based NSFileProviderExtension instead"]
103        #[unsafe(method(documentStorageURL))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn documentStorageURL(&self) -> Option<Retained<NSURL>>;
106    );
107}
108
109/// Methods declared on superclass `UIViewController`.
110#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
111impl UIDocumentPickerExtensionViewController {
112    extern_methods!(
113        #[unsafe(method(initWithNibName:bundle:))]
114        #[unsafe(method_family = init)]
115        pub unsafe fn initWithNibName_bundle(
116            this: Allocated<Self>,
117            nib_name_or_nil: Option<&NSString>,
118            nib_bundle_or_nil: Option<&NSBundle>,
119        ) -> Retained<Self>;
120
121        #[unsafe(method(initWithCoder:))]
122        #[unsafe(method_family = init)]
123        pub unsafe fn initWithCoder(
124            this: Allocated<Self>,
125            coder: &NSCoder,
126        ) -> Option<Retained<Self>>;
127    );
128}
129
130/// Methods declared on superclass `NSObject`.
131#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
132impl UIDocumentPickerExtensionViewController {
133    extern_methods!(
134        #[unsafe(method(init))]
135        #[unsafe(method_family = init)]
136        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
137
138        #[unsafe(method(new))]
139        #[unsafe(method_family = new)]
140        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
141    );
142}