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"))]
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        /// 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.
39        #[unsafe(method(fulfillWithDateConnected:))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn fulfillWithDateConnected(&self, date_connected: &NSDate);
42    );
43}
44
45/// Methods declared on superclass `CXCallAction`.
46#[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/// Methods declared on superclass `NSObject`.
68#[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}