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
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        /// Unique ID
40        #[unsafe(method(UUID))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn UUID(&self) -> Retained<NSUUID>;
43
44        /// Whether all actions are either fulfilled or failed
45        #[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        /// # Safety
58        ///
59        /// `a_decoder` possibly has further requirements.
60        #[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        /// Report successful execution of the receiver.
68        #[unsafe(method(fulfill))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn fulfill(&self);
71
72        /// Report failed execution of the receiver.
73        #[unsafe(method(fail))]
74        #[unsafe(method_family = none)]
75        pub unsafe fn fail(&self);
76    );
77}
78
79/// Methods declared on superclass `NSObject`.
80impl CXAction {
81    extern_methods!(
82        #[unsafe(method(new))]
83        #[unsafe(method_family = new)]
84        pub unsafe fn new() -> Retained<Self>;
85    );
86}