objc2_call_kit/generated/
CXAction.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct CXAction;
15);
16
17extern_conformance!(
18 unsafe impl NSCoding for CXAction {}
19);
20
21extern_conformance!(
22 unsafe impl NSCopying for CXAction {}
23);
24
25unsafe impl CopyingHelper for CXAction {
26 type Result = Self;
27}
28
29extern_conformance!(
30 unsafe impl NSObjectProtocol for CXAction {}
31);
32
33extern_conformance!(
34 unsafe impl NSSecureCoding for CXAction {}
35);
36
37impl CXAction {
38 extern_methods!(
39 #[unsafe(method(UUID))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn UUID(&self) -> Retained<NSUUID>;
43
44 #[unsafe(method(isComplete))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn isComplete(&self) -> bool;
48
49 #[unsafe(method(timeoutDate))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn timeoutDate(&self) -> Retained<NSDate>;
52
53 #[unsafe(method(init))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
56
57 #[unsafe(method(initWithCoder:))]
61 #[unsafe(method_family = init)]
62 pub unsafe fn initWithCoder(
63 this: Allocated<Self>,
64 a_decoder: &NSCoder,
65 ) -> Option<Retained<Self>>;
66
67 #[unsafe(method(fulfill))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn fulfill(&self);
71
72 #[unsafe(method(fail))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn fail(&self);
76 );
77}
78
79impl CXAction {
81 extern_methods!(
82 #[unsafe(method(new))]
83 #[unsafe(method_family = new)]
84 pub unsafe fn new() -> Retained<Self>;
85 );
86}