icrate/generated/CallKit/
CXAnswerCallAction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::CallKit::*;
5use crate::Foundation::*;
6
7extern_class!(
8    #[derive(Debug, PartialEq, Eq, Hash)]
9    #[cfg(feature = "CallKit_CXAnswerCallAction")]
10    pub struct CXAnswerCallAction;
11
12    #[cfg(feature = "CallKit_CXAnswerCallAction")]
13    unsafe impl ClassType for CXAnswerCallAction {
14        #[inherits(CXAction, NSObject)]
15        type Super = CXCallAction;
16        type Mutability = InteriorMutable;
17    }
18);
19
20#[cfg(feature = "CallKit_CXAnswerCallAction")]
21unsafe impl NSCoding for CXAnswerCallAction {}
22
23#[cfg(feature = "CallKit_CXAnswerCallAction")]
24unsafe impl NSCopying for CXAnswerCallAction {}
25
26#[cfg(feature = "CallKit_CXAnswerCallAction")]
27unsafe impl NSObjectProtocol for CXAnswerCallAction {}
28
29#[cfg(feature = "CallKit_CXAnswerCallAction")]
30unsafe impl NSSecureCoding for CXAnswerCallAction {}
31
32extern_methods!(
33    #[cfg(feature = "CallKit_CXAnswerCallAction")]
34    unsafe impl CXAnswerCallAction {
35        #[cfg(feature = "Foundation_NSDate")]
36        #[method(fulfillWithDateConnected:)]
37        pub unsafe fn fulfillWithDateConnected(&self, date_connected: &NSDate);
38    }
39);
40
41extern_methods!(
42    /// Methods declared on superclass `CXCallAction`
43    #[cfg(feature = "CallKit_CXAnswerCallAction")]
44    unsafe impl CXAnswerCallAction {
45        #[cfg(feature = "Foundation_NSUUID")]
46        #[method_id(@__retain_semantics Init initWithCallUUID:)]
47        pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID) -> Id<Self>;
48
49        #[cfg(feature = "Foundation_NSCoder")]
50        #[method_id(@__retain_semantics Init initWithCoder:)]
51        pub unsafe fn initWithCoder(this: Allocated<Self>, a_decoder: &NSCoder)
52            -> Option<Id<Self>>;
53
54        #[method_id(@__retain_semantics Init init)]
55        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
56    }
57);
58
59extern_methods!(
60    /// Methods declared on superclass `NSObject`
61    #[cfg(feature = "CallKit_CXAnswerCallAction")]
62    unsafe impl CXAnswerCallAction {
63        #[method_id(@__retain_semantics New new)]
64        pub unsafe fn new() -> Id<Self>;
65    }
66);