objc2_event_kit/generated/
EKVirtualConferenceDescriptor.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
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/eventkit/ekvirtualconferenceroomtypeidentifier?language=objc)
10pub type EKVirtualConferenceRoomTypeIdentifier = NSString;
11
12extern_class!(
13    /// Describes a virtual conference room type.
14    ///
15    /// See also [Apple's documentation](https://developer.apple.com/documentation/eventkit/ekvirtualconferenceroomtypedescriptor?language=objc)
16    #[unsafe(super(NSObject))]
17    #[derive(Debug, PartialEq, Eq, Hash)]
18    pub struct EKVirtualConferenceRoomTypeDescriptor;
19);
20
21unsafe impl NSObjectProtocol for EKVirtualConferenceRoomTypeDescriptor {}
22
23impl EKVirtualConferenceRoomTypeDescriptor {
24    extern_methods!(
25        /// Initializes an instance of EKVirtualConferenceRoomTypeDescriptor.
26        ///
27        /// Parameter `title`: A user-readable title describing this room type. This string will be
28        /// displayed in UI.
29        ///
30        /// Parameter `identifier`: An EKVirtualConferenceRoomTypeIdentifier that your extension can use to
31        /// distinguish this room type from the other room types that your extension
32        /// provides. This is chosen by your extension and is passed back to your
33        /// extension if the user chooses to create a virtual conference of the
34        /// associated room type.
35        #[unsafe(method(initWithTitle:identifier:))]
36        #[unsafe(method_family = init)]
37        pub unsafe fn initWithTitle_identifier(
38            this: Allocated<Self>,
39            title: &NSString,
40            identifier: &EKVirtualConferenceRoomTypeIdentifier,
41        ) -> Retained<Self>;
42
43        #[unsafe(method(title))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn title(&self) -> Retained<NSString>;
46
47        #[unsafe(method(identifier))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn identifier(&self) -> Retained<EKVirtualConferenceRoomTypeIdentifier>;
50
51        #[unsafe(method(init))]
52        #[unsafe(method_family = init)]
53        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
54
55        #[unsafe(method(new))]
56        #[unsafe(method_family = new)]
57        pub unsafe fn new() -> Retained<Self>;
58    );
59}
60
61extern_class!(
62    /// Describes a URL that can be used to join a virtual conference.
63    ///
64    /// See also [Apple's documentation](https://developer.apple.com/documentation/eventkit/ekvirtualconferenceurldescriptor?language=objc)
65    #[unsafe(super(NSObject))]
66    #[derive(Debug, PartialEq, Eq, Hash)]
67    pub struct EKVirtualConferenceURLDescriptor;
68);
69
70unsafe impl NSObjectProtocol for EKVirtualConferenceURLDescriptor {}
71
72impl EKVirtualConferenceURLDescriptor {
73    extern_methods!(
74        /// Initializes an instance of EKVirtualConferenceURLDescriptor.
75        ///
76        /// Parameter `title`: A user-readable title describing this URL. This string may be displayed
77        /// in the UI. This string is optional and may be left nil. If your virtual
78        /// conference only has one way to join it, then you can probably leave this
79        /// nil. However, if your virtual conference has multiple ways to join it,
80        /// you should have a title for each URL so that users can better understand
81        /// what each URL represents.
82        ///
83        /// Parameter `URL`: A URL that, when opened, will join the virtual conference.
84        #[unsafe(method(initWithTitle:URL:))]
85        #[unsafe(method_family = init)]
86        pub unsafe fn initWithTitle_URL(
87            this: Allocated<Self>,
88            title: Option<&NSString>,
89            url: &NSURL,
90        ) -> Retained<Self>;
91
92        #[unsafe(method(title))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn title(&self) -> Option<Retained<NSString>>;
95
96        #[unsafe(method(URL))]
97        #[unsafe(method_family = none)]
98        pub unsafe fn URL(&self) -> Retained<NSURL>;
99
100        #[unsafe(method(init))]
101        #[unsafe(method_family = init)]
102        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
103
104        #[unsafe(method(new))]
105        #[unsafe(method_family = new)]
106        pub unsafe fn new() -> Retained<Self>;
107    );
108}
109
110extern_class!(
111    /// Describes a virtual conference.
112    ///
113    /// See also [Apple's documentation](https://developer.apple.com/documentation/eventkit/ekvirtualconferencedescriptor?language=objc)
114    #[unsafe(super(NSObject))]
115    #[derive(Debug, PartialEq, Eq, Hash)]
116    pub struct EKVirtualConferenceDescriptor;
117);
118
119unsafe impl NSObjectProtocol for EKVirtualConferenceDescriptor {}
120
121impl EKVirtualConferenceDescriptor {
122    extern_methods!(
123        /// Initializes an instance of EKVirtualConferenceDescriptor.
124        ///
125        /// Parameter `title`: A user-readable title describing this virtual conference. This string
126        /// may be displayed in the UI. This string is optional and may be left nil.
127        ///
128        /// Parameter `URLDescriptors`: An array of EKVirtualConferenceURLDescriptors, representing the various
129        /// ways to join your virtual conference. Do not pass an empty array. Your
130        /// array should be ordered such that the most preferred method of joining
131        /// the virtual conference comes first in the array, with subsequent methods
132        /// of joining appearing in descending priority.
133        ///
134        /// Parameter `conferenceDetails`: A user-readable string containing any other information you wish to
135        /// communicate to the user about this virtual conference. This string will
136        /// be displayed in the UI. This argument is optional and may be left nil.
137        #[unsafe(method(initWithTitle:URLDescriptors:conferenceDetails:))]
138        #[unsafe(method_family = init)]
139        pub unsafe fn initWithTitle_URLDescriptors_conferenceDetails(
140            this: Allocated<Self>,
141            title: Option<&NSString>,
142            url_descriptors: &NSArray<EKVirtualConferenceURLDescriptor>,
143            conference_details: Option<&NSString>,
144        ) -> Retained<Self>;
145
146        #[unsafe(method(title))]
147        #[unsafe(method_family = none)]
148        pub unsafe fn title(&self) -> Option<Retained<NSString>>;
149
150        #[unsafe(method(URLDescriptors))]
151        #[unsafe(method_family = none)]
152        pub unsafe fn URLDescriptors(&self) -> Retained<NSArray<EKVirtualConferenceURLDescriptor>>;
153
154        #[unsafe(method(conferenceDetails))]
155        #[unsafe(method_family = none)]
156        pub unsafe fn conferenceDetails(&self) -> Option<Retained<NSString>>;
157
158        #[unsafe(method(init))]
159        #[unsafe(method_family = init)]
160        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
161
162        #[unsafe(method(new))]
163        #[unsafe(method_family = new)]
164        pub unsafe fn new() -> Retained<Self>;
165    );
166}