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
16unsafe impl NSObjectProtocol for CXCall {}
17
18impl CXCall {
19    extern_methods!(
20        #[unsafe(method(UUID))]
21        #[unsafe(method_family = none)]
22        pub unsafe fn UUID(&self) -> Retained<NSUUID>;
23
24        #[unsafe(method(isOutgoing))]
25        #[unsafe(method_family = none)]
26        pub unsafe fn isOutgoing(&self) -> bool;
27
28        #[unsafe(method(isOnHold))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn isOnHold(&self) -> bool;
31
32        #[unsafe(method(hasConnected))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn hasConnected(&self) -> bool;
35
36        #[unsafe(method(hasEnded))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn hasEnded(&self) -> bool;
39
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[unsafe(method(isEqualToCall:))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn isEqualToCall(&self, call: &CXCall) -> bool;
47    );
48}
49
50/// Methods declared on superclass `NSObject`.
51impl CXCall {
52    extern_methods!(
53        #[unsafe(method(new))]
54        #[unsafe(method_family = new)]
55        pub unsafe fn new() -> Retained<Self>;
56    );
57}