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")]
18unsafe impl NSCoding for CXCallAction {}
19
20#[cfg(feature = "CXAction")]
21unsafe impl NSCopying for CXCallAction {}
22
23#[cfg(feature = "CXAction")]
24unsafe impl CopyingHelper for CXCallAction {
25 type Result = Self;
26}
27
28#[cfg(feature = "CXAction")]
29unsafe impl NSObjectProtocol for CXCallAction {}
30
31#[cfg(feature = "CXAction")]
32unsafe impl NSSecureCoding for CXCallAction {}
33
34#[cfg(feature = "CXAction")]
35impl CXCallAction {
36 extern_methods!(
37 #[unsafe(method(callUUID))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn callUUID(&self) -> Retained<NSUUID>;
40
41 #[unsafe(method(initWithCallUUID:))]
42 #[unsafe(method_family = init)]
43 pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &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(init))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
56 );
57}
58
59#[cfg(feature = "CXAction")]
61impl CXCallAction {
62 extern_methods!(
63 #[unsafe(method(new))]
64 #[unsafe(method_family = new)]
65 pub unsafe fn new() -> Retained<Self>;
66 );
67}