use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-ui-kit")]
use objc2_ui_kit::*;
use crate::*;
extern_class!(
#[unsafe(super(UIViewController, UIResponder, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2-ui-kit")]
pub struct MSStickerBrowserViewController;
);
#[cfg(all(feature = "MSStickerBrowserViewDataSource", feature = "objc2-ui-kit"))]
extern_conformance!(
unsafe impl MSStickerBrowserViewDataSource for MSStickerBrowserViewController {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl NSCoding for MSStickerBrowserViewController {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl NSObjectProtocol for MSStickerBrowserViewController {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIAppearanceContainer for MSStickerBrowserViewController {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIContentContainer for MSStickerBrowserViewController {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIFocusEnvironment for MSStickerBrowserViewController {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UIResponderStandardEditActions for MSStickerBrowserViewController {}
);
#[cfg(feature = "objc2-ui-kit")]
extern_conformance!(
unsafe impl UITraitEnvironment for MSStickerBrowserViewController {}
);
#[cfg(feature = "objc2-ui-kit")]
impl MSStickerBrowserViewController {
extern_methods!(
#[cfg(feature = "MSStickerBrowserView")]
#[unsafe(method(initWithStickerSize:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithStickerSize(
this: Allocated<Self>,
sticker_size: MSStickerSize,
) -> Retained<Self>;
#[cfg(feature = "MSStickerBrowserView")]
#[unsafe(method(stickerBrowserView))]
#[unsafe(method_family = none)]
pub unsafe fn stickerBrowserView(&self) -> Retained<MSStickerBrowserView>;
#[cfg(feature = "MSStickerBrowserView")]
#[unsafe(method(stickerSize))]
#[unsafe(method_family = none)]
pub unsafe fn stickerSize(&self) -> MSStickerSize;
);
}
#[cfg(feature = "objc2-ui-kit")]
impl MSStickerBrowserViewController {
extern_methods!(
#[unsafe(method(initWithNibName:bundle:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithNibName_bundle(
this: Allocated<Self>,
nib_name_or_nil: Option<&NSString>,
nib_bundle_or_nil: Option<&NSBundle>,
) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
#[cfg(feature = "objc2-ui-kit")]
impl MSStickerBrowserViewController {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}