objc2_call_kit/generated/
CXSetGroupCallAction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/callkit/cxsetgroupcallaction?language=objc)
12    #[unsafe(super(CXCallAction, CXAction, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
15    pub struct CXSetGroupCallAction;
16);
17
18#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
19extern_conformance!(
20    unsafe impl NSCoding for CXSetGroupCallAction {}
21);
22
23#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
24extern_conformance!(
25    unsafe impl NSCopying for CXSetGroupCallAction {}
26);
27
28#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
29unsafe impl CopyingHelper for CXSetGroupCallAction {
30    type Result = Self;
31}
32
33#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
34extern_conformance!(
35    unsafe impl NSObjectProtocol for CXSetGroupCallAction {}
36);
37
38#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
39extern_conformance!(
40    unsafe impl NSSecureCoding for CXSetGroupCallAction {}
41);
42
43#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
44impl CXSetGroupCallAction {
45    extern_methods!(
46        #[unsafe(method(initWithCallUUID:callUUIDToGroupWith:))]
47        #[unsafe(method_family = init)]
48        pub unsafe fn initWithCallUUID_callUUIDToGroupWith(
49            this: Allocated<Self>,
50            call_uuid: &NSUUID,
51            call_uuid_to_group_with: Option<&NSUUID>,
52        ) -> Retained<Self>;
53
54        /// # Safety
55        ///
56        /// `a_decoder` possibly has further requirements.
57        #[unsafe(method(initWithCoder:))]
58        #[unsafe(method_family = init)]
59        pub unsafe fn initWithCoder(
60            this: Allocated<Self>,
61            a_decoder: &NSCoder,
62        ) -> Option<Retained<Self>>;
63
64        #[unsafe(method(initWithCallUUID:))]
65        #[unsafe(method_family = init)]
66        pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID)
67            -> Retained<Self>;
68
69        /// The UUID of another call to group with.
70        ///
71        /// - If the call for this action's UUID is already in a group, it should leave that group if necessary.
72        /// - If nil, leave any group the call is currently in.
73        #[unsafe(method(callUUIDToGroupWith))]
74        #[unsafe(method_family = none)]
75        pub unsafe fn callUUIDToGroupWith(&self) -> Option<Retained<NSUUID>>;
76
77        /// Setter for [`callUUIDToGroupWith`][Self::callUUIDToGroupWith].
78        ///
79        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
80        #[unsafe(method(setCallUUIDToGroupWith:))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn setCallUUIDToGroupWith(&self, call_uuid_to_group_with: Option<&NSUUID>);
83    );
84}
85
86/// Methods declared on superclass `CXCallAction`.
87#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
88impl CXSetGroupCallAction {
89    extern_methods!(
90        #[unsafe(method(init))]
91        #[unsafe(method_family = init)]
92        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
93    );
94}
95
96/// Methods declared on superclass `NSObject`.
97#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
98impl CXSetGroupCallAction {
99    extern_methods!(
100        #[unsafe(method(new))]
101        #[unsafe(method_family = new)]
102        pub unsafe fn new() -> Retained<Self>;
103    );
104}