icrate/generated/CallKit/
CXStartCallAction.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_CXStartCallAction")]
10    pub struct CXStartCallAction;
11
12    #[cfg(feature = "CallKit_CXStartCallAction")]
13    unsafe impl ClassType for CXStartCallAction {
14        #[inherits(CXAction, NSObject)]
15        type Super = CXCallAction;
16        type Mutability = InteriorMutable;
17    }
18);
19
20#[cfg(feature = "CallKit_CXStartCallAction")]
21unsafe impl NSCoding for CXStartCallAction {}
22
23#[cfg(feature = "CallKit_CXStartCallAction")]
24unsafe impl NSCopying for CXStartCallAction {}
25
26#[cfg(feature = "CallKit_CXStartCallAction")]
27unsafe impl NSObjectProtocol for CXStartCallAction {}
28
29#[cfg(feature = "CallKit_CXStartCallAction")]
30unsafe impl NSSecureCoding for CXStartCallAction {}
31
32extern_methods!(
33    #[cfg(feature = "CallKit_CXStartCallAction")]
34    unsafe impl CXStartCallAction {
35        #[cfg(all(feature = "CallKit_CXHandle", feature = "Foundation_NSUUID"))]
36        #[method_id(@__retain_semantics Init initWithCallUUID:handle:)]
37        pub unsafe fn initWithCallUUID_handle(
38            this: Allocated<Self>,
39            call_uuid: &NSUUID,
40            handle: &CXHandle,
41        ) -> Id<Self>;
42
43        #[cfg(feature = "Foundation_NSCoder")]
44        #[method_id(@__retain_semantics Init initWithCoder:)]
45        pub unsafe fn initWithCoder(this: Allocated<Self>, a_decoder: &NSCoder)
46            -> Option<Id<Self>>;
47
48        #[cfg(feature = "Foundation_NSUUID")]
49        #[method_id(@__retain_semantics Init initWithCallUUID:)]
50        pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID) -> Id<Self>;
51
52        #[cfg(feature = "CallKit_CXHandle")]
53        #[method_id(@__retain_semantics Other handle)]
54        pub unsafe fn handle(&self) -> Id<CXHandle>;
55
56        #[cfg(feature = "CallKit_CXHandle")]
57        #[method(setHandle:)]
58        pub unsafe fn setHandle(&self, handle: &CXHandle);
59
60        #[cfg(feature = "Foundation_NSString")]
61        #[method_id(@__retain_semantics Other contactIdentifier)]
62        pub unsafe fn contactIdentifier(&self) -> Option<Id<NSString>>;
63
64        #[cfg(feature = "Foundation_NSString")]
65        #[method(setContactIdentifier:)]
66        pub unsafe fn setContactIdentifier(&self, contact_identifier: Option<&NSString>);
67
68        #[method(isVideo)]
69        pub unsafe fn isVideo(&self) -> bool;
70
71        #[method(setVideo:)]
72        pub unsafe fn setVideo(&self, video: bool);
73
74        #[cfg(feature = "Foundation_NSDate")]
75        #[method(fulfillWithDateStarted:)]
76        pub unsafe fn fulfillWithDateStarted(&self, date_started: &NSDate);
77    }
78);
79
80extern_methods!(
81    /// Methods declared on superclass `CXCallAction`
82    #[cfg(feature = "CallKit_CXStartCallAction")]
83    unsafe impl CXStartCallAction {
84        #[method_id(@__retain_semantics Init init)]
85        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
86    }
87);
88
89extern_methods!(
90    /// Methods declared on superclass `NSObject`
91    #[cfg(feature = "CallKit_CXStartCallAction")]
92    unsafe impl CXStartCallAction {
93        #[method_id(@__retain_semantics New new)]
94        pub unsafe fn new() -> Id<Self>;
95    }
96);