objc2_call_kit/generated/
CXCall.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/callkit/cxcall?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CXCall;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for CXCall {}
18);
19
20impl CXCall {
21    extern_methods!(
22        #[unsafe(method(UUID))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn UUID(&self) -> Retained<NSUUID>;
25
26        #[unsafe(method(isOutgoing))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn isOutgoing(&self) -> bool;
29
30        #[unsafe(method(isOnHold))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn isOnHold(&self) -> bool;
33
34        #[unsafe(method(hasConnected))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn hasConnected(&self) -> bool;
37
38        #[unsafe(method(hasEnded))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn hasEnded(&self) -> bool;
41
42        #[unsafe(method(init))]
43        #[unsafe(method_family = init)]
44        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46        #[unsafe(method(isEqualToCall:))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn isEqualToCall(&self, call: &CXCall) -> bool;
49    );
50}
51
52/// Methods declared on superclass `NSObject`.
53impl CXCall {
54    extern_methods!(
55        #[unsafe(method(new))]
56        #[unsafe(method_family = new)]
57        pub unsafe fn new() -> Retained<Self>;
58    );
59}