use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIDocumentViewControllerLaunchOptions;
);
extern_conformance!(
unsafe impl NSObjectProtocol for UIDocumentViewControllerLaunchOptions {}
);
impl UIDocumentViewControllerLaunchOptions {
extern_methods!(
#[cfg(all(
feature = "UIDocumentBrowserViewController",
feature = "UIResponder",
feature = "UIViewController"
))]
#[unsafe(method(browserViewController))]
#[unsafe(method_family = none)]
pub fn browserViewController(&self) -> Retained<UIDocumentBrowserViewController>;
#[cfg(all(
feature = "UIDocumentBrowserViewController",
feature = "UIResponder",
feature = "UIViewController"
))]
#[unsafe(method(setBrowserViewController:))]
#[unsafe(method_family = none)]
pub fn setBrowserViewController(
&self,
browser_view_controller: &UIDocumentBrowserViewController,
);
#[unsafe(method(title))]
#[unsafe(method_family = none)]
pub fn title(&self) -> Retained<NSString>;
#[unsafe(method(setTitle:))]
#[unsafe(method_family = none)]
pub fn setTitle(&self, title: &NSString);
#[cfg(all(feature = "UIAction", feature = "UIMenuElement"))]
#[unsafe(method(primaryAction))]
#[unsafe(method_family = none)]
pub fn primaryAction(&self) -> Option<Retained<UIAction>>;
#[cfg(all(feature = "UIAction", feature = "UIMenuElement"))]
#[unsafe(method(setPrimaryAction:))]
#[unsafe(method_family = none)]
pub fn setPrimaryAction(&self, primary_action: Option<&UIAction>);
#[cfg(all(feature = "UIAction", feature = "UIMenuElement"))]
#[unsafe(method(secondaryAction))]
#[unsafe(method_family = none)]
pub fn secondaryAction(&self) -> Option<Retained<UIAction>>;
#[cfg(all(feature = "UIAction", feature = "UIMenuElement"))]
#[unsafe(method(setSecondaryAction:))]
#[unsafe(method_family = none)]
pub fn setSecondaryAction(&self, secondary_action: Option<&UIAction>);
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(documentTargetView))]
#[unsafe(method_family = none)]
pub fn documentTargetView(&self) -> Option<Retained<UIView>>;
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(setDocumentTargetView:))]
#[unsafe(method_family = none)]
pub fn setDocumentTargetView(&self, document_target_view: Option<&UIView>);
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(foregroundAccessoryView))]
#[unsafe(method_family = none)]
pub fn foregroundAccessoryView(&self) -> Option<Retained<UIView>>;
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(setForegroundAccessoryView:))]
#[unsafe(method_family = none)]
pub fn setForegroundAccessoryView(&self, foreground_accessory_view: Option<&UIView>);
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(backgroundAccessoryView))]
#[unsafe(method_family = none)]
pub fn backgroundAccessoryView(&self) -> Option<Retained<UIView>>;
#[cfg(all(feature = "UIResponder", feature = "UIView"))]
#[unsafe(method(setBackgroundAccessoryView:))]
#[unsafe(method_family = none)]
pub fn setBackgroundAccessoryView(&self, background_accessory_view: Option<&UIView>);
#[cfg(feature = "UIBackgroundConfiguration")]
#[unsafe(method(background))]
#[unsafe(method_family = none)]
pub fn background(&self) -> Retained<UIBackgroundConfiguration>;
#[cfg(feature = "UIBackgroundConfiguration")]
#[unsafe(method(setBackground:))]
#[unsafe(method_family = none)]
pub fn setBackground(&self, background: &UIBackgroundConfiguration);
#[cfg(all(
feature = "UIAction",
feature = "UIDocument",
feature = "UIMenuElement"
))]
#[unsafe(method(createDocumentActionWithIntent:))]
#[unsafe(method_family = none)]
pub fn createDocumentActionWithIntent(
intent: &UIDocumentCreationIntent,
mtm: MainThreadMarker,
) -> Retained<UIAction>;
);
}
impl UIDocumentViewControllerLaunchOptions {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}