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