icrate/generated/CallKit/
CXCallUpdate.rs1use crate::common::*;
4use crate::CallKit::*;
5use crate::Foundation::*;
6
7extern_class!(
8 #[derive(Debug, PartialEq, Eq, Hash)]
9 #[cfg(feature = "CallKit_CXCallUpdate")]
10 pub struct CXCallUpdate;
11
12 #[cfg(feature = "CallKit_CXCallUpdate")]
13 unsafe impl ClassType for CXCallUpdate {
14 type Super = NSObject;
15 type Mutability = InteriorMutable;
16 }
17);
18
19#[cfg(feature = "CallKit_CXCallUpdate")]
20unsafe impl NSCopying for CXCallUpdate {}
21
22#[cfg(feature = "CallKit_CXCallUpdate")]
23unsafe impl NSObjectProtocol for CXCallUpdate {}
24
25extern_methods!(
26 #[cfg(feature = "CallKit_CXCallUpdate")]
27 unsafe impl CXCallUpdate {
28 #[cfg(feature = "CallKit_CXHandle")]
29 #[method_id(@__retain_semantics Other remoteHandle)]
30 pub unsafe fn remoteHandle(&self) -> Option<Id<CXHandle>>;
31
32 #[cfg(feature = "CallKit_CXHandle")]
33 #[method(setRemoteHandle:)]
34 pub unsafe fn setRemoteHandle(&self, remote_handle: Option<&CXHandle>);
35
36 #[cfg(feature = "Foundation_NSString")]
37 #[method_id(@__retain_semantics Other localizedCallerName)]
38 pub unsafe fn localizedCallerName(&self) -> Option<Id<NSString>>;
39
40 #[cfg(feature = "Foundation_NSString")]
41 #[method(setLocalizedCallerName:)]
42 pub unsafe fn setLocalizedCallerName(&self, localized_caller_name: Option<&NSString>);
43
44 #[method(supportsHolding)]
45 pub unsafe fn supportsHolding(&self) -> bool;
46
47 #[method(setSupportsHolding:)]
48 pub unsafe fn setSupportsHolding(&self, supports_holding: bool);
49
50 #[method(supportsGrouping)]
51 pub unsafe fn supportsGrouping(&self) -> bool;
52
53 #[method(setSupportsGrouping:)]
54 pub unsafe fn setSupportsGrouping(&self, supports_grouping: bool);
55
56 #[method(supportsUngrouping)]
57 pub unsafe fn supportsUngrouping(&self) -> bool;
58
59 #[method(setSupportsUngrouping:)]
60 pub unsafe fn setSupportsUngrouping(&self, supports_ungrouping: bool);
61
62 #[method(supportsDTMF)]
63 pub unsafe fn supportsDTMF(&self) -> bool;
64
65 #[method(setSupportsDTMF:)]
66 pub unsafe fn setSupportsDTMF(&self, supports_dtmf: bool);
67
68 #[method(hasVideo)]
69 pub unsafe fn hasVideo(&self) -> bool;
70
71 #[method(setHasVideo:)]
72 pub unsafe fn setHasVideo(&self, has_video: bool);
73 }
74);
75
76extern_methods!(
77 #[cfg(feature = "CallKit_CXCallUpdate")]
79 unsafe impl CXCallUpdate {
80 #[method_id(@__retain_semantics Init init)]
81 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
82
83 #[method_id(@__retain_semantics New new)]
84 pub unsafe fn new() -> Id<Self>;
85 }
86);