icrate/generated/CallKit/
CXCallAction.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_CXCallAction")]
10    pub struct CXCallAction;
11
12    #[cfg(feature = "CallKit_CXCallAction")]
13    unsafe impl ClassType for CXCallAction {
14        #[inherits(NSObject)]
15        type Super = CXAction;
16        type Mutability = InteriorMutable;
17    }
18);
19
20#[cfg(feature = "CallKit_CXCallAction")]
21unsafe impl NSCoding for CXCallAction {}
22
23#[cfg(feature = "CallKit_CXCallAction")]
24unsafe impl NSCopying for CXCallAction {}
25
26#[cfg(feature = "CallKit_CXCallAction")]
27unsafe impl NSObjectProtocol for CXCallAction {}
28
29#[cfg(feature = "CallKit_CXCallAction")]
30unsafe impl NSSecureCoding for CXCallAction {}
31
32extern_methods!(
33    #[cfg(feature = "CallKit_CXCallAction")]
34    unsafe impl CXCallAction {
35        #[cfg(feature = "Foundation_NSUUID")]
36        #[method_id(@__retain_semantics Other callUUID)]
37        pub unsafe fn callUUID(&self) -> Id<NSUUID>;
38
39        #[cfg(feature = "Foundation_NSUUID")]
40        #[method_id(@__retain_semantics Init initWithCallUUID:)]
41        pub unsafe fn initWithCallUUID(this: Allocated<Self>, call_uuid: &NSUUID) -> 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        #[method_id(@__retain_semantics Init init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
50    }
51);
52
53extern_methods!(
54    /// Methods declared on superclass `NSObject`
55    #[cfg(feature = "CallKit_CXCallAction")]
56    unsafe impl CXCallAction {
57        #[method_id(@__retain_semantics New new)]
58        pub unsafe fn new() -> Id<Self>;
59    }
60);