objc2_call_kit/generated/
CXAnswerCallAction.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/cxanswercallaction?language=objc)
12    #[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"))]
19extern_conformance!(
20    unsafe impl NSCoding for CXAnswerCallAction {}
21);
22
23#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
24extern_conformance!(
25    unsafe impl NSCopying for CXAnswerCallAction {}
26);
27
28#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
29unsafe impl CopyingHelper for CXAnswerCallAction {
30    type Result = Self;
31}
32
33#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
34extern_conformance!(
35    unsafe impl NSObjectProtocol for CXAnswerCallAction {}
36);
37
38#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
39extern_conformance!(
40    unsafe impl NSSecureCoding for CXAnswerCallAction {}
41);
42
43#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
44impl CXAnswerCallAction {
45    extern_methods!(
46        /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call connected. A call is considered connected when both caller and callee can start communicating.
47        #[unsafe(method(fulfillWithDateConnected:))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn fulfillWithDateConnected(&self, date_connected: &NSDate);
50    );
51}
52
53/// Methods declared on superclass `CXCallAction`.
54#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
55impl CXAnswerCallAction {
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        /// # Safety
63        ///
64        /// `a_decoder` possibly has further requirements.
65        #[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/// Methods declared on superclass `NSObject`.
79#[cfg(all(feature = "CXAction", feature = "CXCallAction"))]
80impl CXAnswerCallAction {
81    extern_methods!(
82        #[unsafe(method(new))]
83        #[unsafe(method_family = new)]
84        pub unsafe fn new() -> Retained<Self>;
85    );
86}