objc2_push_to_talk/generated/
PTChannelDescriptor.rs1use 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 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct PTChannelDescriptor;
16);
17
18unsafe impl Send for PTChannelDescriptor {}
19
20unsafe impl Sync for PTChannelDescriptor {}
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for PTChannelDescriptor {}
24);
25
26impl PTChannelDescriptor {
27 extern_methods!(
28 #[unsafe(method(new))]
29 #[unsafe(method_family = new)]
30 pub unsafe fn new() -> Retained<Self>;
31
32 #[unsafe(method(init))]
33 #[unsafe(method_family = init)]
34 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
35
36 #[cfg(feature = "objc2-ui-kit")]
37 #[unsafe(method(initWithName:image:))]
38 #[unsafe(method_family = init)]
39 pub unsafe fn initWithName_image(
40 this: Allocated<Self>,
41 name: &NSString,
42 image: Option<&UIImage>,
43 ) -> Retained<Self>;
44
45 #[unsafe(method(name))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn name(&self) -> Retained<NSString>;
49
50 #[cfg(feature = "objc2-ui-kit")]
51 #[unsafe(method(image))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn image(&self) -> Option<Retained<UIImage>>;
55 );
56}