objc2_messages/generated/
MSStickerBrowserViewController.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6#[cfg(feature = "objc2-ui-kit")]
7use objc2_ui_kit::*;
8
9use crate::*;
10
11extern_class!(
12    /// The MSStickerBrowserViewController class creates a controller object that manages a MSStickerBrowserView.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/messages/msstickerbrowserviewcontroller?language=objc)
15    #[unsafe(super(UIViewController, UIResponder, NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    #[cfg(feature = "objc2-ui-kit")]
18    pub struct MSStickerBrowserViewController;
19);
20
21#[cfg(all(feature = "MSStickerBrowserViewDataSource", feature = "objc2-ui-kit"))]
22extern_conformance!(
23    unsafe impl MSStickerBrowserViewDataSource for MSStickerBrowserViewController {}
24);
25
26#[cfg(feature = "objc2-ui-kit")]
27extern_conformance!(
28    unsafe impl NSCoding for MSStickerBrowserViewController {}
29);
30
31#[cfg(feature = "objc2-ui-kit")]
32extern_conformance!(
33    unsafe impl NSObjectProtocol for MSStickerBrowserViewController {}
34);
35
36#[cfg(feature = "objc2-ui-kit")]
37extern_conformance!(
38    unsafe impl UIAppearanceContainer for MSStickerBrowserViewController {}
39);
40
41#[cfg(feature = "objc2-ui-kit")]
42extern_conformance!(
43    unsafe impl UIContentContainer for MSStickerBrowserViewController {}
44);
45
46#[cfg(feature = "objc2-ui-kit")]
47extern_conformance!(
48    unsafe impl UIFocusEnvironment for MSStickerBrowserViewController {}
49);
50
51#[cfg(feature = "objc2-ui-kit")]
52extern_conformance!(
53    unsafe impl UIResponderStandardEditActions for MSStickerBrowserViewController {}
54);
55
56#[cfg(feature = "objc2-ui-kit")]
57extern_conformance!(
58    unsafe impl UITraitEnvironment for MSStickerBrowserViewController {}
59);
60
61#[cfg(feature = "objc2-ui-kit")]
62impl MSStickerBrowserViewController {
63    extern_methods!(
64        #[cfg(feature = "MSStickerBrowserView")]
65        /// Initializes a MSStickerBrowserViewController and configures it's MSStickerBrowserView with the provided sticker size class.
66        #[unsafe(method(initWithStickerSize:))]
67        #[unsafe(method_family = init)]
68        pub unsafe fn initWithStickerSize(
69            this: Allocated<Self>,
70            sticker_size: MSStickerSize,
71        ) -> Retained<Self>;
72
73        #[cfg(feature = "MSStickerBrowserView")]
74        /// Returns the sticker browser view managed by the controller object.
75        #[unsafe(method(stickerBrowserView))]
76        #[unsafe(method_family = none)]
77        pub unsafe fn stickerBrowserView(&self) -> Retained<MSStickerBrowserView>;
78
79        #[cfg(feature = "MSStickerBrowserView")]
80        /// Controls the size of the stickers are displayed at in the sticker browser view.
81        #[unsafe(method(stickerSize))]
82        #[unsafe(method_family = none)]
83        pub unsafe fn stickerSize(&self) -> MSStickerSize;
84    );
85}
86
87/// Methods declared on superclass `UIViewController`.
88#[cfg(feature = "objc2-ui-kit")]
89impl MSStickerBrowserViewController {
90    extern_methods!(
91        #[unsafe(method(initWithNibName:bundle:))]
92        #[unsafe(method_family = init)]
93        pub unsafe fn initWithNibName_bundle(
94            this: Allocated<Self>,
95            nib_name_or_nil: Option<&NSString>,
96            nib_bundle_or_nil: Option<&NSBundle>,
97        ) -> Retained<Self>;
98
99        #[unsafe(method(initWithCoder:))]
100        #[unsafe(method_family = init)]
101        pub unsafe fn initWithCoder(
102            this: Allocated<Self>,
103            coder: &NSCoder,
104        ) -> Option<Retained<Self>>;
105    );
106}
107
108/// Methods declared on superclass `NSObject`.
109#[cfg(feature = "objc2-ui-kit")]
110impl MSStickerBrowserViewController {
111    extern_methods!(
112        #[unsafe(method(init))]
113        #[unsafe(method_family = init)]
114        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
115
116        #[unsafe(method(new))]
117        #[unsafe(method_family = new)]
118        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
119    );
120}