objc2_call_kit/generated/
CXAction.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/cxaction?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct CXAction;
15);
16
17unsafe impl NSCoding for CXAction {}
18
19unsafe impl NSCopying for CXAction {}
20
21unsafe impl CopyingHelper for CXAction {
22    type Result = Self;
23}
24
25unsafe impl NSObjectProtocol for CXAction {}
26
27unsafe impl NSSecureCoding for CXAction {}
28
29impl CXAction {
30    extern_methods!(
31        /// Unique ID
32        #[unsafe(method(UUID))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn UUID(&self) -> Retained<NSUUID>;
35
36        /// Whether all actions are either fulfilled or failed
37        #[unsafe(method(isComplete))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn isComplete(&self) -> bool;
40
41        #[unsafe(method(timeoutDate))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn timeoutDate(&self) -> Retained<NSDate>;
44
45        #[unsafe(method(init))]
46        #[unsafe(method_family = init)]
47        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48
49        #[unsafe(method(initWithCoder:))]
50        #[unsafe(method_family = init)]
51        pub unsafe fn initWithCoder(
52            this: Allocated<Self>,
53            a_decoder: &NSCoder,
54        ) -> Option<Retained<Self>>;
55
56        /// Report successful execution of the receiver.
57        #[unsafe(method(fulfill))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn fulfill(&self);
60
61        /// Report failed execution of the receiver.
62        #[unsafe(method(fail))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn fail(&self);
65    );
66}
67
68/// Methods declared on superclass `NSObject`.
69impl CXAction {
70    extern_methods!(
71        #[unsafe(method(new))]
72        #[unsafe(method_family = new)]
73        pub unsafe fn new() -> Retained<Self>;
74    );
75}