objc2_call_kit/generated/
CXAnswerCallAction.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 CXAnswerCallAction;
16);
17
18#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
19unsafe impl NSCoding for CXAnswerCallAction {}
20
21#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
22unsafe impl NSCopying for CXAnswerCallAction {}
23
24#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
25unsafe impl CopyingHelper for CXAnswerCallAction {
26 type Result = Self;
27}
28
29#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
30unsafe impl NSObjectProtocol for CXAnswerCallAction {}
31
32#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
33unsafe impl NSSecureCoding for CXAnswerCallAction {}
34
35#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
36impl CXAnswerCallAction {
37 extern_methods!(
38 #[unsafe(method(fulfillWithDateConnected:))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn fulfillWithDateConnected(&self, date_connected: &NSDate);
42 );
43}
44
45#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
47impl CXAnswerCallAction {
48 extern_methods!(
49 #[unsafe(method(initWithCallUUID:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID)
52 -> Retained<Self>;
53
54 #[unsafe(method(initWithCoder:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithCoder(
57 this: Allocated<Self>,
58 a_decoder: &NSCoder,
59 ) -> Option<Retained<Self>>;
60
61 #[unsafe(method(init))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
64 );
65}
66
67#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
69impl CXAnswerCallAction {
70 extern_methods!(
71 #[unsafe(method(new))]
72 #[unsafe(method_family = new)]
73 pub unsafe fn new() -> Retained<Self>;
74 );
75}