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"))]
19unsafe impl NSCoding for CXSetGroupCallAction {}
20
21#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
22unsafe impl NSCopying for CXSetGroupCallAction {}
23
24#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
25unsafe impl CopyingHelper for CXSetGroupCallAction {
26    type Result = Self;
27}
28
29#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
30unsafe impl NSObjectProtocol for CXSetGroupCallAction {}
31
32#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
33unsafe impl NSSecureCoding for CXSetGroupCallAction {}
34
35#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
36impl CXSetGroupCallAction {
37    extern_methods!(
38        #[unsafe(method(initWithCallUUID:callUUIDToGroupWith:))]
39        #[unsafe(method_family = init)]
40        pub unsafe fn initWithCallUUID_callUUIDToGroupWith(
41            this: Allocated<Self>,
42            call_uuid: &NSUUID,
43            call_uuid_to_group_with: Option<&NSUUID>,
44        ) -> Retained<Self>;
45
46        #[unsafe(method(initWithCoder:))]
47        #[unsafe(method_family = init)]
48        pub unsafe fn initWithCoder(
49            this: Allocated<Self>,
50            a_decoder: &NSCoder,
51        ) -> Option<Retained<Self>>;
52
53        #[unsafe(method(initWithCallUUID:))]
54        #[unsafe(method_family = init)]
55        pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID)
56            -> Retained<Self>;
57
58        /// The UUID of another call to group with.
59        ///
60        /// - If the call for this action's UUID is already in a group, it should leave that group if necessary.
61        /// - If nil, leave any group the call is currently in.
62        #[unsafe(method(callUUIDToGroupWith))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn callUUIDToGroupWith(&self) -> Option<Retained<NSUUID>>;
65
66        /// Setter for [`callUUIDToGroupWith`][Self::callUUIDToGroupWith].
67        #[unsafe(method(setCallUUIDToGroupWith:))]
68        #[unsafe(method_family = none)]
69        pub unsafe fn setCallUUIDToGroupWith(&self, call_uuid_to_group_with: Option<&NSUUID>);
70    );
71}
72
73/// Methods declared on superclass `CXCallAction`.
74#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
75impl CXSetGroupCallAction {
76    extern_methods!(
77        #[unsafe(method(init))]
78        #[unsafe(method_family = init)]
79        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
80    );
81}
82
83/// Methods declared on superclass `NSObject`.
84#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
85impl CXSetGroupCallAction {
86    extern_methods!(
87        #[unsafe(method(new))]
88        #[unsafe(method_family = new)]
89        pub unsafe fn new() -> Retained<Self>;
90    );
91}