objc2_push_to_talk/generated/
PTChannelDescriptor.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    /// [Apple's documentation](https://developer.apple.com/documentation/pushtotalk/ptchanneldescriptor?language=objc)
13    #[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        /// The channel's "group name" shown in system user interface. (This is shown while nobody else is speaking.)
46        #[unsafe(method(name))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn name(&self) -> Retained<NSString>;
49
50        #[cfg(feature = "objc2-ui-kit")]
51        /// The channel's "group photo" presented in the system user interface. This image is shown while nobody else is speaking.
52        #[unsafe(method(image))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn image(&self) -> Option<Retained<UIImage>>;
55    );
56}