objc2_call_kit/generated/
CXCallAction.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(CXAction, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(feature = "CXAction")]
14 pub struct CXCallAction;
15);
16
17#[cfg(feature = "CXAction")]
18extern_conformance!(
19 unsafe impl NSCoding for CXCallAction {}
20);
21
22#[cfg(feature = "CXAction")]
23extern_conformance!(
24 unsafe impl NSCopying for CXCallAction {}
25);
26
27#[cfg(feature = "CXAction")]
28unsafe impl CopyingHelper for CXCallAction {
29 type Result = Self;
30}
31
32#[cfg(feature = "CXAction")]
33extern_conformance!(
34 unsafe impl NSObjectProtocol for CXCallAction {}
35);
36
37#[cfg(feature = "CXAction")]
38extern_conformance!(
39 unsafe impl NSSecureCoding for CXCallAction {}
40);
41
42#[cfg(feature = "CXAction")]
43impl CXCallAction {
44 extern_methods!(
45 #[unsafe(method(callUUID))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn callUUID(&self) -> Retained<NSUUID>;
48
49 #[unsafe(method(initWithCallUUID:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID)
52 -> Retained<Self>;
53
54 #[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(init))]
65 #[unsafe(method_family = init)]
66 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
67 );
68}
69
70#[cfg(feature = "CXAction")]
72impl CXCallAction {
73 extern_methods!(
74 #[unsafe(method(new))]
75 #[unsafe(method_family = new)]
76 pub unsafe fn new() -> Retained<Self>;
77 );
78}